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