ASL
|
A mutex that can be locked or unlocked to protect concurrent access to a resource.
However it is recommended to use Lock instead, which is automatically unlocked on scope exit.
#include <Mutex.h>
Public Member Functions | |
void | lock () |
Locks the mutex. More... | |
void | unlock () |
Unlocks the mutex so other threads can use the protected resource. | |
|
inline |
Locks the mutex.
If it was already locked by another thread, the function will wait until it is unlocked.