|
join 1.0
lightweight network framework library
|
Futex-based mutex for intra-process locking. More...
#include <futex.hpp>
Public Member Functions | |
| BasicFutex () noexcept | |
| default constructor. | |
| BasicFutex (const BasicFutex &other)=delete | |
| copy constructor. | |
| BasicFutex & | operator= (const BasicFutex &other)=delete |
| copy assignment. | |
| BasicFutex (BasicFutex &&other)=delete | |
| move constructor. | |
| BasicFutex & | operator= (BasicFutex &&other)=delete |
| move assignment. | |
| ~BasicFutex ()=default | |
| destructor. | |
| void | lock () noexcept |
| lock the futex, blocking until it becomes available. | |
| bool | tryLock () noexcept |
| try to lock the futex without blocking. | |
| void | unlock () noexcept |
| unlock the futex. | |
| std::atomic_uint32_t * | handle () noexcept |
| get a pointer to the underlying futex word. | |
Futex-based mutex for intra-process locking.
|
inlinenoexcept |
default constructor.
|
delete |
copy constructor.
| other | other object to copy. |
|
delete |
move constructor.
| other | other object to move. |
|
default |
destructor.
|
inlinenoexcept |
get a pointer to the underlying futex word.
|
inlinenoexcept |
lock the futex, blocking until it becomes available.
|
delete |
move assignment.
| other | other object to move. |
|
delete |
copy assignment.
| other | other object to copy. |
|
inlinenoexcept |
try to lock the futex without blocking.
|
inlinenoexcept |
unlock the futex.