Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fawkes::RecursiveMutex Class Reference

Recursive mutex. More...

#include <>>

Inheritance diagram for fawkes::RecursiveMutex:

List of all members.

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...

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

fawkes::RecursiveMutex::RecursiveMutex ( )

Constructor.

Definition at line 44 of file recursive_mutex.cpp.


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