|
AndroMeta
2.0.0
|
Thread synchronization construct. More...
#include <MMutex.h>
Public Member Functions | |
| MMutex () | |
| ~MMutex () | |
| void | lock () |
| bool | lock (const mtime &timeout) |
| bool | tryLock () |
| void | unlock () |
Friends | |
| class | MMutex_ |
Thread synchronization construct.
A mutual-exclusion lock used to protect data shared among threads.
Constructor.
Destructor.
| void Meta::MMutex::lock | ( | ) |
Block until an exclusive lock is acquired on the mutex.
| bool Meta::MMutex::lock | ( | const mtime & | timeout | ) |
Block until an exclusive lock is acquired on the mutex or timeout has been reached.
| bool Meta::MMutex::tryLock | ( | ) |
Attempt to obtain an exclusive lock on the mutex, but do not spend any time waiting.
| void Meta::MMutex::unlock | ( | ) |
Release the lock on the mutex.
1.7.6.1