#include <Mutex.unix.h>
Public Methods | |
| Mutex () | |
| Default contructor. | |
| ~Mutex () | |
| Unlocks and destroys the mutex. | |
| void | lock () |
| Locks the mutex. | |
| void | unlock () |
| Unlocks the mutex. | |
| bool | trylock () |
| Returns true iff the mutex has been succesfully locked. | |
| Mutex () | |
| Default contructor. | |
| ~Mutex () | |
| Unlocks and destroys the mutex. | |
| void | lock () |
| Locks the mutex. | |
| void | unlock () |
| Unlocks the mutex. | |
| bool | trylock () |
| Returns true iff the mutex has been succesfully locked. | |
The Mutex class abstracts from the OS dependent mutex calls. Currently two versions exists: one based on WIN32 and one on POSIX MT.