Fawkes API  Fawkes Development Version
fawkes::RecursiveMutex Class Reference

Recursive mutex. More...

#include <>>

Inheritance diagram for fawkes::RecursiveMutex:

Public Member Functions

 RecursiveMutex ()
 Constructor. More...
 
- Public Member Functions inherited from fawkes::Mutex
 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

- Public Types inherited from fawkes::Mutex
enum  Type { NORMAL, RECURSIVE }
 Mutex type. More...
 

Detailed Description

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.

Author
Tim Niemueller

Definition at line 31 of file recursive_mutex.h.

Constructor & Destructor Documentation

◆ RecursiveMutex()

fawkes::RecursiveMutex::RecursiveMutex ( )

Constructor.

Definition at line 44 of file recursive_mutex.cpp.


The documentation for this class was generated from the following files: