#include <Mutex.h>
Public Member Functions | |
| Mutex () | |
| Initializes this mutex. | |
| void | acquire () |
| Acquire the lock on a mutex, blocking if necessary. | |
| void | release () |
| Releases a locked mutex. | |
Friends | |
| class | Thread |
| class | ConditionVariable |
Classes | |
| struct | MutexData |
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.
| void GNE::Mutex::acquire | ( | ) |
Acquire the lock on a mutex, blocking if necessary.
1.4.7