|
Dev Essential
|
Fast mutex class, implemented as an atomic spin lock with very low CPU overhead. More...
#include <fast_mutex.h>
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 () |
| void | unlock () |
| Unlock the mutex. | |
| native_handle_type | native_handle () |
Fast mutex class, implemented as an atomic spin lock with very low CPU overhead.
| native_handle_type a_util::concurrency::fast_mutex::native_handle | ( | ) |
Get the native handle of the mutex
| bool a_util::concurrency::fast_mutex::try_lock | ( | ) |
Try to lock the mutex
true if locking succeeded, false otherwise.