Fawkes API
Fawkes Development Version
|
Recursive mutex. More...
#include <>>
Public Member Functions | |
RecursiveMutex () | |
Constructor. More... | |
![]() | |
Mutex (Type type=NORMAL) | |
Constructor. More... | |
~Mutex () | |
Destructor. More... | |
void | lock () |
Lock this mutex. More... | |
bool | try_lock () |
Tries to lock the mutex. More... | |
void | unlock () |
Unlock the mutex. More... | |
void | stopby () |
Shortly stop by at the mutex. More... | |
Friends | |
class | WaitCondition |
Additional Inherited Members | |
![]() | |
enum | Type { NORMAL, RECURSIVE } |
Mutex type. More... | |
Recursive mutex.
This is a mutex which can be locked multiple times by the same thread. Other threads attempting to lock the mutex will block as if this were a regular mutex. This class is just a convenience sub-class of Mutex with its type set to Mutex::RECURSIVE. It is meant to be used to make the actual behavior more obvious.
Definition at line 31 of file recursive_mutex.h.
fawkes::RecursiveMutex::RecursiveMutex | ( | ) |
Constructor.
Definition at line 44 of file recursive_mutex.cpp.