gloox
1.0.1
|
#include <mutex.h>
Public Member Functions | |
Mutex () | |
~Mutex () | |
void | lock () |
bool | trylock () |
void | unlock () |
A simple implementation of mutex as a wrapper around a pthread mutex or a win32 critical section.
If you locked a mutex you MUST unlock it within the same thread.
bool trylock | ( | ) |
Tries to lock the mutex.