OpenThreads
|
This class provides an object-oriented thread mutex interface. More...
#include <Mutex>
Public Types | |
enum | MutexType { MUTEX_NORMAL , MUTEX_RECURSIVE } |
Public Member Functions | |
Mutex (MutexType type=MUTEX_NORMAL) | |
Constructor. | |
virtual | ~Mutex () |
Destructor. | |
MutexType | getMutexType () const |
virtual int | lock () |
Lock the mutex. | |
virtual int | unlock () |
Unlock the mutex. | |
virtual int | trylock () |
Test if mutex can be locked. |
Friends | |
class | Condition |
This class provides an object-oriented thread mutex interface.
OpenThreads::Mutex::Mutex | ( | MutexType | type = MUTEX_NORMAL | ) |
Constructor.
References MUTEX_NORMAL.
Referenced by OpenThreads::ReentrantMutex::ReentrantMutex(), and trylock().
|
virtual |
Destructor.
|
inline |
|
virtual |
Lock the mutex.
|
virtual |
Test if mutex can be locked.
References Mutex().
|
virtual |
Unlock the mutex.
![]() | Generated at Sun Jul 27 2025 00:00:00 for the OpenThreads by doxygen 1.14.0. |