#include <mutex.h>
Public Types | |
typedef pthread_mutex_t * | native_handle_type |
Public Member Functions | |
mutex () | |
virtual | ~mutex () |
void | lock () |
bool | try_lock () |
void | unlock () |
native_handle_type | native_handle () |
Protected Member Functions | |
mutex (bool recursive) | |
Protected Attributes | |
pthread_mutex_t | fMutex |
pthread_mutexattr_t | attr_t |
Friends | |
class | condition_variable |
typedef pthread_mutex_t* amino::mutex::native_handle_type |
amino::mutex::mutex | ( | bool | recursive | ) | [inline, protected] |
private constructor for initialize a reentrant mutex
amino::mutex::mutex | ( | ) | [inline] |
virtual amino::mutex::~mutex | ( | ) | [inline, virtual] |
void amino::mutex::lock | ( | ) | [inline] |
bool amino::mutex::try_lock | ( | ) | [inline] |
void amino::mutex::unlock | ( | ) | [inline] |
native_handle_type amino::mutex::native_handle | ( | ) | [inline] |
friend class condition_variable [friend] |
pthread_mutex_t amino::mutex::fMutex [protected] |
pthread_mutexattr_t amino::mutex::attr_t [protected] |