Mutex class. More...
|Lock the mutex. |
|Try to lock the mutex. |
|Unlock the mutex. |
This is a mutual exclusion object for synchronizing access to shared memory areas for several threads. The mutex is non-recursive (i.e. a program may deadlock if the thread that owns a mutex object calls lock() on that object).
Try to lock the mutex.
The method will try to lock the mutex. If it fails, the function will return immediately (non-blocking).
trueif the lock was acquired, or
falseif the lock could not be acquired.
Unlock the mutex.
If any threads are waiting for the lock on this mutex, one of them will be unblocked.