Mutual exclusion lock wrapping std::mutex. More...
#include <mutex.h>
Classes | |
| class | Locker |
| RAII scoped locker for Mutex. More... | |
Public Member Functions | |
| Mutex ()=default | |
| Constructs an unlocked mutex. | |
| ~Mutex ()=default | |
| Destructor. | |
| Mutex (const Mutex &)=delete | |
| Mutex & | operator= (const Mutex &)=delete |
| Mutex (Mutex &&)=delete | |
| Mutex & | operator= (Mutex &&)=delete |
| void | lock () |
| Locks the mutex. Blocks if already locked by another thread. | |
| void | unlock () |
| Unlocks the mutex. | |
| bool | tryLock () |
| Attempts to lock the mutex without blocking. | |
Friends | |
| class | WaitCondition |
Mutual exclusion lock wrapping std::mutex.
Provides a simple mutex with lock/unlock/tryLock and a nested RAII
|
inline |
Attempts to lock the mutex without blocking.