Very Simple Cross-Platform Library
|
#include <Mutex.h>
Public Member Functions | |
void | lock () |
bool | tryLock () |
void | unlock () |
void hu::varadiistvan::scpl::Mutex::lock | ( | ) |
Lock the mutex. If the mutex is locked by another thread, the caller one waits until the other thread releases the mutex.
bool hu::varadiistvan::scpl::Mutex::tryLock | ( | ) |
Try to lock the mutex. If the mutex is locked by another thread, this function returns false immediately. Otherwise it locks the mutex and returns true.
void hu::varadiistvan::scpl::Mutex::unlock | ( | ) |
Unlock the mutex.