Public Member Functions | |
friend | ONIXS_FIXENGINE_API_DECL (class, Condition) |
Mutex () | |
~Mutex () | |
void | acquire () |
bool | tryAcquire () |
void | release () |
Protects a resources from simultaneous access by multiple threads.
Only one thread at a time can own instance of this class.
This implementation is optimized for locking threads that are in the same process.
void acquire | ( | ) |
Acquires lock ownership. If Mutex already occupied by the other thread, block current thread and waits until it will be released by the owner.
void release | ( | ) |
Releases the ownership (lock) and unblocks one of waiting threads.