A simple mutual-exclusion lock.
More...
#include <Mutex.h>
|
|
| Mutex (const Mutex &)=delete |
| |
|
Mutex & | operator= (const Mutex &)=delete |
| |
| void | lock () |
| | Blocks until the mutex is acquired. Not recursive: locking twice from one thread deadlocks.
|
| |
| void | unlock () |
| | Releases the mutex. Must be called by the thread that locked it.
|
| |
|
| void * | handle = nullptr |
| | Backend-assigned mutex handle.
|
| |
A simple mutual-exclusion lock.
Delegates to ThreadDriver for the actual platform primitive.
Definition at line 13 of file Mutex.h.
◆ Mutex()
◆ ~Mutex()
◆ lock()
Blocks until the mutex is acquired. Not recursive: locking twice from one thread deadlocks.
Definition at line 22 of file Mutex.cpp.
◆ unlock()
Releases the mutex. Must be called by the thread that locked it.
Definition at line 28 of file Mutex.cpp.
◆ Cond
◆ handle
| void* Mutex::handle = nullptr |
|
protected |
Backend-assigned mutex handle.
Definition at line 29 of file Mutex.h.
The documentation for this class was generated from the following files: