Mutex. More...
#include <deMutex.h>
Public Member Functions | |
Constructors and Destructors | |
| deMutex () | |
| Creates a mutex. | |
| ~deMutex () | |
| Cleans the mutex. | |
Management | |
| void | Lock () |
| Locks the mutex. | |
| bool | TryLock () |
| Locks the mutex. | |
| void | Unlock () |
| Unlocks the mutex. | |
Mutex.
Provides mutual exclusive access support using a thin wrapper around the operating system specific threading mutex.
| deMutex::deMutex | ( | ) |
Creates a mutex.
| deMutex::~deMutex | ( | ) |
Cleans the mutex.
| void deMutex::Lock | ( | ) |
Locks the mutex.
If the mutex is already locked this call blocks until the original called released it.
| bool deMutex::TryLock | ( | ) |
Locks the mutex.
If the mutex is already locked this call returns false and no lock is taken. If the mutex is not locked this call acquires the lock and return true.
| void deMutex::Unlock | ( | ) |
Unlocks the mutex.
An exception is thrown if this thread is not holding the mutex.
1.7.2