|
stdex
Additional custom or not Standard C++ covered algorithms
|
Spin-lock. More...
#include <stdex/spinlock.hpp>
Public Member Functions | |
| void | lock () noexcept |
| Blocks until a lock can be acquired for the current execution agent (thread, process, task). | |
| bool | try_lock () noexcept |
| Attempts to acquire the lock for the current execution agent (thread, process, task) without blocking. | |
| void | unlock () noexcept |
| Releases the non-shared lock held by the execution agent. | |
Spin-lock.
|
inlinenoexcept |
Attempts to acquire the lock for the current execution agent (thread, process, task) without blocking.