instances of DtMutex are used to provide a platform independent mutual exclusion mechanism
More...
Public Member Functions |
| | DtMutex () |
| | default constructor
|
| virtual | ~DtMutex () |
| | destructor
|
| virtual void | lock () |
| | get exclusive control of something
|
| virtual bool | tryLock () |
| | Non blocking version of lock.
|
| virtual void | unlock () |
| | release exclusive control
|
Protected Attributes |
| pthread_mutex_t | myPTMutex |
| | _WIN32
|
Detailed Description
instances of DtMutex are used to provide a platform independent mutual exclusion mechanism
Constructor & Destructor Documentation
| DtMutex::DtMutex |
( |
const DtMutex & |
orig | ) |
|
|
protected |
| virtual DtMutex::~DtMutex |
( |
| ) |
|
|
virtual |
Member Function Documentation
| virtual void DtMutex::lock |
( |
| ) |
|
|
virtual |
get exclusive control of something
| virtual bool DtMutex::tryLock |
( |
| ) |
|
|
virtual |
Non blocking version of lock.
- Returns
- false if the mutex cannot lock due to a different thread being here
| virtual void DtMutex::unlock |
( |
| ) |
|
|
virtual |
release exclusive control
Member Data Documentation
| pthread_mutex_t DtMutex::myPTMutex |
|
protected |
The documentation for this class was generated from the following file: