ADTF
3.18.2
|
Fast mutex class, implemented as an atomic spin lock with very low CPU overhead. More...
Public Types | |
typedef void * | native_handle_type |
Type of a native handle. | |
Public Member Functions | |
fast_mutex () | |
CTOR. | |
~fast_mutex () | |
DTOR. | |
void | lock () |
Lock the mutex. | |
bool | try_lock () |
Try to lock the mutex. More... | |
void | unlock () |
Unlock the mutex. | |
native_handle_type | native_handle () |
Get the native handle of the mutex. More... | |
Private Attributes | |
a_util::memory::StackPtr< Implementation, 64 > | _impl |
Fast mutex class, implemented as an atomic spin lock with very low CPU overhead.
Definition at line 23 of file fast_mutex.h.
native_handle_type native_handle | ( | ) |
Get the native handle of the mutex.
bool try_lock | ( | ) |
Try to lock the mutex.
true
if locking succeeded, false
otherwise.