|
wibble
0.1.28
|
Acquire a mutex lock, RAII-style. More...
#include <mutex.h>

Public Member Functions | |
| MutexLockT (Mutex &m) | |
| ~MutexLockT () | |
| void | drop () |
| void | reclaim () |
| void | setYield (bool y) |
| void | checkYield () |
Public Attributes | |
| Mutex & | mutex |
| bool | locked |
| bool | yield |
Friends | |
| class | Condition |
Acquire a mutex lock, RAII-style.
| wibble::sys::MutexLockT< Mutex >::MutexLockT | ( | Mutex & | m | ) | [inline] |
| wibble::sys::MutexLockT< Mutex >::~MutexLockT | ( | ) | [inline] |
| void wibble::sys::MutexLockT< Mutex >::checkYield | ( | ) | [inline] |
References wibble::sys::MutexLockT< Mutex >::yield.
Referenced by wibble::sys::MutexLockT< Mutex >::drop(), and wibble::sys::MutexLockT< Mutex >::~MutexLockT().
| void wibble::sys::MutexLockT< Mutex >::drop | ( | ) | [inline] |
| void wibble::sys::MutexLockT< Mutex >::reclaim | ( | ) | [inline] |
| void wibble::sys::MutexLockT< Mutex >::setYield | ( | bool | y | ) | [inline] |
References wibble::sys::MutexLockT< Mutex >::yield.
friend class Condition [friend] |
| bool wibble::sys::MutexLockT< Mutex >::locked |
| Mutex& wibble::sys::MutexLockT< Mutex >::mutex |
| bool wibble::sys::MutexLockT< Mutex >::yield |
1.7.6.1