RecursiveMutex Class Reference

#include <Pt/System/Mutex.h>

Recursive mutual exclusion device.

Inherits NonCopyable.

Public Member Functions

 RecursiveMutex ()
 Constructor.
 
 ~RecursiveMutex ()
 Destructor.
 
void lock ()
 Locks the mutex.
 
bool tryLock ()
 Returns true if the mutex could be locked..
 
void unlock ()
 Unlocks the mutex. More...
 

Member Function Documentation

void unlock ( )

If the mutex was locked more than one time by the same thread unlock decrements the lock-count. The mutex is actually unlocked when the lock-count is zero.