#include <Mutex.h>
Public Member Functions | |
Mutex () | |
Initalizes this mutex. | |
void | acquire () |
Acquire the lock on a mutex, blocking if necessary. | |
void | release () |
Releases a locked mutex. | |
Friends | |
class | Thread |
class | ConditionVariable |
This version of a mutex is recursive. This means that if a thread already owns the mutex, then a second lock will not deadlock. You need to unlock the mutex the same number of times it was locked to unlock it.
|
Acquire the lock on a mutex, blocking if necessary.
|