#include <Mutex.hh>
Public Member Functions | |
clMutex () | |
Constructor; creates and initializes the mutex. | |
~clMutex () | |
Desctructor; destroys the mutex. | |
bool | Wait () |
Lock mutex. | |
bool | Release () |
Unlock mutex. | |
bool | TryLock () |
Try locking mutex without blocking the calling process. | |
pthread_mutex_t * | GetPtr () |
Return pointer to mutex variable. | |
Private Attributes | |
pthread_mutex_t | pthmMutex |
Definition at line 37 of file Mutex.hh.
|
Constructor; creates and initializes the mutex.
Definition at line 44 of file Mutex.hh. References pthmMutex. |
|
Desctructor; destroys the mutex.
Definition at line 48 of file Mutex.hh. References pthmMutex. |
|
Lock mutex. Process is blocked until mutex lock becomes available.
Definition at line 55 of file Mutex.hh. References pthmMutex. Referenced by clDynThreadsBase::Create(), clDynThreadsBase::SetSched(), clDynThreadsBase::Wait(), and clDynThreadsBase::~clDynThreadsBase(). |
|
Unlock mutex.
Definition at line 66 of file Mutex.hh. References pthmMutex. Referenced by clDynThreadsBase::Create(), clDynThreadsBase::SetSched(), clDynThreadsBase::Wait(), and clDynThreadsBase::~clDynThreadsBase(). |
|
Try locking mutex without blocking the calling process.
Definition at line 77 of file Mutex.hh. References pthmMutex. |
|
Return pointer to mutex variable. For use with condition variables.
Definition at line 89 of file Mutex.hh. References pthmMutex. |
|
Definition at line 39 of file Mutex.hh. Referenced by clMutex(), GetPtr(), Release(), TryLock(), Wait(), and ~clMutex(). |