6 #define YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
8 #undef YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
20 RecursiveMutex::RecursiveMutex() :
37 return mPriv->mutex.try_lock();
42 mPriv->mutex.unlock();
47 return mPriv->mutex.try_lock();
std::recursive_mutex mutex
RecursiveMutex offers exclusive, recursive ownership semantics:
~RecursiveMutex()
Destructor.
void unlock()
Unlock the associated resource thus freeing waiting threads.
bool try_lock()
Lock the associated resource if it is free.
bool tryLock()
Lock the associated resource if it is free.
void lock()
Lock the associated resource, waiting if the resource is busy.