9 #define YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
11 #undef YARP_INCLUDING_DEPRECATED_HEADER_ON_PURPOSE
23 RecursiveMutex::RecursiveMutex() :
40 return mPriv->mutex.try_lock();
45 mPriv->mutex.unlock();
50 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.