56 void enter()
const noexcept;
61 return lock.compareAndSetBool (1, 0);
65 inline void exit() const noexcept
Automatically locks and unlocks a mutex object.
Automatically locks and unlocks a mutex object.
Automatically unlocks and re-locks a mutex object.
A simple spin-lock class that can be used as a simple, low-overhead mutex for uncontended situations.
void exit() const noexcept
Releases the lock.
bool tryEnter() const noexcept
Attempts to acquire the lock, returning true if this was successful.
A simple wrapper around std::atomic.