#include <B2BITS_Mutex.h>
Public Member Functions | |
| Mutex () | |
| virtual | ~Mutex () |
| void | lock () |
| bool | tryLock () |
| void | unlock () |
Static Public Attributes | |
| static pthread_mutexattr_t | s_mutexAttr |
Friends | |
| class | Condition |
| class | Utils::CTGuard< Mutex > |
| void | onceMutexRoutine () |
| System::Mutex::Mutex | ( | ) |
Constructor.
| virtual System::Mutex::~Mutex | ( | ) | [virtual] |
Destructor.
| void System::Mutex::lock | ( | ) |
Locks the mutex. If the mutex is currently locked, the calling thread is blocked until mutex is unlocked. On return, the thread owns the mutex until it calls Mutex::unlock().
| void System::Mutex::unlock | ( | ) |
Unlocks the mutex. The mutex becomes unowned. If any threads are waiting for the mutex, one is awakened.
pthread_mutexattr_t System::Mutex::s_mutexAttr [static] |
Describes the attributes of a thread mutex. It should be considered an opaque record, the names of the fields can change anytime.
1.5.6