A mutex variable. More...
#include <libppbase/base/Mutex.h>
Public Member Functions | |
| Mutex () | |
| Constructor. | |
| ~Mutex () | |
| Destructor. | |
| pthread_mutex_t * | getMutex () |
| Gets the internal mutex object. | |
| void | lock () |
| Locks the mutex. | |
| void | unlock () |
| Unlocks the mutex. | |
Protected Member Functions | |
| DISALLOW_COPY_CONSTRUCTOR_AND_ASSIGNMENT (Mutex) | |
| mutexes cannot be duplicated | |
Protected Attributes | |
| pthread_mutex_t | _mutex |
| the pthread mutex variable | |
A mutex variable.
| pthread_mutex_t* base::Mutex::getMutex | ( | ) |
Gets the internal mutex object.
1.7.1