|
Evo C++ Library v0.5.1
|
#include <evo/thread.h>

Mutex for thread synchronization.
-pthread-lpthreadC/C++ -> Code Generation -> Runtime LibraryPublic Types | |
| typedef pthread_mutex_t | Handle |
| Mutex handle type. More... | |
| typedef SmartLock< Mutex > | Lock |
| Lock object type – see SmartLock. More... | |
Public Member Functions | |
| Mutex () | |
| Constructor. More... | |
| void | lock () |
| Lock mutex. More... | |
| bool | trylock () |
| Try to lock mutex without blocking. More... | |
| bool | trylock (ulong timeout_ms) |
| Try to lock mutex with a timeout. More... | |
| void | unlock () |
| Unlock mutex. More... | |
Public Attributes | |
| Handle | handle |
| Mutex handle – do not modify. More... | |
|
inline |
Constructor.
1.8.13