#include <thread.h>
Public Member Functions | |
| Mutex () | |
| void | lock () |
| bool | trylock () |
| void | unlock () |
A class representing a mutual exclusion.
| SigCX::Threads::Mutex::Mutex | ( | ) |
Constructor.
The mutex is initially unlocked.
| void SigCX::Threads::Mutex::lock | ( | ) |
Lock the mutex.
This blocks until the mutex is unlocked, if it is already locked.
| bool SigCX::Threads::Mutex::trylock | ( | ) |
Try to lock the mutex.
| void SigCX::Threads::Mutex::unlock | ( | ) |
Unlock the mutex.
1.5.5