|
Fawkes API
Fawkes Development Version
|
Recursive mutex. More...
#include <>>

Public Member Functions | |
| RecursiveMutex () | |
| Constructor. | |
Public Member Functions inherited from fawkes::Mutex | |
| Mutex (Type type=NORMAL) | |
| Constructor. | |
| ~Mutex () | |
| Destructor. | |
| void | lock () |
| Lock this mutex. | |
| bool | try_lock () |
| Tries to lock the mutex. | |
| void | unlock () |
| Unlock the mutex. | |
| void | stopby () |
| Shortly stop by at the mutex. | |
Friends | |
| class | WaitCondition |
Additional Inherited Members | |
Public Types inherited from fawkes::Mutex | |
| 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.