class
#include <muu/spin_mutex.h>
spin_mutex A mutex that acquires locks by spin-waiting.
Constructors, destructors, conversion operators
- spin_mutex() noexcept
- Default constructor.
Public functions
Function documentation
bool muu:: spin_mutex:: try_lock() noexcept
Tries to acquire a lock on the mutex.
Returns | true if the lock was acquired. |
---|