Mutex.
More...
#include <mutex.h>
|
| Mutex () |
| Initialize mutex.
|
|
| ~Mutex () |
| Destroy mutex.
|
|
bool | try_lock () const |
| Try to lock the mutex.
|
|
void | lock () const |
| Lock mutex.
|
|
void | unlock () const |
| Unlock mutex.
|
|
Mutex.
Definition at line 30 of file mutex.h.
◆ Lock
RAII lock.
Definition at line 33 of file mutex.h.
◆ Mutex()
roc::core::Mutex::Mutex |
( |
| ) |
|
◆ ~Mutex()
roc::core::Mutex::~Mutex |
( |
| ) |
|
◆ lock()
void roc::core::Mutex::lock |
( |
| ) |
const |
|
inline |
Lock mutex.
Definition at line 53 of file mutex.h.
◆ try_lock()
bool roc::core::Mutex::try_lock |
( |
| ) |
const |
|
inline |
Try to lock the mutex.
Definition at line 42 of file mutex.h.
◆ unlock()
void roc::core::Mutex::unlock |
( |
| ) |
const |
|
inline |
Unlock mutex.
Definition at line 60 of file mutex.h.
◆ Cond
The documentation for this class was generated from the following file:
- roc_core/target_posix/roc_core/mutex.h