|Create new mutex object. More...|
|Calling the destructor on a locked mutex does not unlock the mutex. More...|
|Create a lock. More...|
|Release the current lock on a mutex. |
|Attempt to lock the mutex. More...|
Create new mutex object.
The object is created unlocked.
Calling the destructor on a locked mutex does not unlock the mutex.
That must be done by calling unlock() before calling the destructor.
Create a lock.
If the mutex is available it is locked immediately. If it is already locked by another thread, this function waits until the other thread has unlocked it, then creates the lock.
Attempt to lock the mutex.
If the mutex is already locked by another thread, the function returns right away.