![]() |
Protium
Math and Design Features
|
Wrapper class for pthreads-style mutexes. More...
#include <Mutex.h>
Public Member Functions | |
| Mutex () | |
| bool | IsLocked () |
| void | Lock () |
| Attempts to lock the mutex and blocks until mutex is available. More... | |
| void | Unlock () |
| Unlocks the mutex for the next usage. More... | |
Private Member Functions | |
| Mutex (const Mutex &) | |
| Mutex & | operator= (const Mutex &) |
Private Attributes | |
| bool | fIsLocked |
| pthread_mutex_t | fMtx |
Wrapper class for pthreads-style mutexes.
Provides the ability to lock mutexes at the object level
|
private |
| bool Protium::Threads::Mutex::IsLocked | ( | ) |
| void Protium::Threads::Mutex::Lock | ( | ) |
| void Protium::Threads::Mutex::Unlock | ( | ) |