|
roo_threads
API Documentation for roo_threads
|
Mutual exclusion primitive. More...
#include <mutex_api.h>
Public Member Functions | |
| mutex () noexcept | |
| Constructs a mutex. | |
| mutex (const mutex &)=delete | |
| mutex & | operator= (const mutex &)=delete |
| void | lock () |
| Blocks until the mutex is acquired. | |
| bool | try_lock () |
| Attempts to acquire the mutex without blocking. | |
| void | unlock () |
| Releases the mutex. | |
Mutual exclusion primitive.
Definition at line 12 of file mutex_api.h.
|
noexcept |
Constructs a mutex.
| void roo_threads::doc::mutex::lock | ( | ) |
Blocks until the mutex is acquired.
| bool roo_threads::doc::mutex::try_lock | ( | ) |
Attempts to acquire the mutex without blocking.
| void roo_threads::doc::mutex::unlock | ( | ) |
Releases the mutex.