A simple mutex implementation.
More...
#include <mutex.hpp>
|
| | mutex ()=default |
| |
| | ~mutex ()=default |
| |
| void | lock () noexcept |
| | Lock the mutex.
|
| |
| bool | try_lock () noexcept |
| | Try to lock the mutex.
|
| |
| void | unlock () noexcept |
| | Unlock the mutex.
|
| |
A simple mutex implementation.
Definition at line 14 of file mutex.hpp.
◆ mutex()
◆ ~mutex()
◆ lock()
| void tenno::mutex::lock |
( |
| ) |
|
|
inlinenoexcept |
Lock the mutex.
Definition at line 23 of file mutex.hpp.
◆ try_lock()
| bool tenno::mutex::try_lock |
( |
| ) |
|
|
inlinenoexcept |
Try to lock the mutex.
- Returns
- true if the mutex was locked, false otherwise
Definition at line 66 of file mutex.hpp.
◆ unlock()
| void tenno::mutex::unlock |
( |
| ) |
|
|
inlinenoexcept |
Unlock the mutex.
Definition at line 97 of file mutex.hpp.
The documentation for this class was generated from the following file: