#include <mutex.h>
Public Member Functions | |
| Mutex (bool recursive=false) | |
| ~Mutex () | |
| bool | trylock () |
| void | lock () |
| Lock the mutex Normally it's better to use MutexLock. | |
| void | unlock () |
| Unlock the mutex Normally it's better to use MutexLock. | |
| void | reinit () |
| Reinitialize the mutex. | |
Protected Attributes | |
| pthread_mutex_t | mutex |
Friends | |
| class | Condition |
| wibble::sys::Mutex::Mutex | ( | bool | recursive = false |
) | [inline] |
References mutex.
| wibble::sys::Mutex::~Mutex | ( | ) | [inline] |
References mutex.
| bool wibble::sys::Mutex::trylock | ( | ) | [inline] |
References mutex.
| void wibble::sys::Mutex::lock | ( | ) | [inline] |
Lock the mutex Normally it's better to use MutexLock.
References mutex.
Referenced by wibble::sys::MutexLock::MutexLock().
| void wibble::sys::Mutex::unlock | ( | ) | [inline] |
Unlock the mutex Normally it's better to use MutexLock.
References mutex.
Referenced by wibble::sys::MutexLock::~MutexLock().
| void wibble::sys::Mutex::reinit | ( | ) | [inline] |
friend class Condition [friend] |
pthread_mutex_t wibble::sys::Mutex::mutex [protected] |
1.5.6