Fast, unfair, spinning reader-writer lock with backoff and writer-preference.
More...
#include <spin_rw_mutex.h>
|
static const bool | is_rw_mutex = true |
|
static const bool | is_recursive_mutex = false |
|
static const bool | is_fair_mutex = false |
|
|
static const state_t | WRITER = 1 |
|
static const state_t | WRITER_PENDING = 2 |
|
static const state_t | READERS = ~(WRITER | WRITER_PENDING) |
|
static const state_t | ONE_READER = 4 |
|
static const state_t | BUSY = WRITER | READERS |
|
Fast, unfair, spinning reader-writer lock with backoff and writer-preference.
bool tbb::spin_rw_mutex_v3::try_lock |
( |
) | |
|
|
inline |
Try acquiring writer lock (non-blocking)
Return true if lock acquired; false otherwise.
bool tbb::spin_rw_mutex_v3::try_lock_read |
( |
) | |
|
|
inline |
Try acquiring reader lock (non-blocking)
Return true if reader lock acquired; false otherwise.
state_t tbb::spin_rw_mutex_v3::state |
|
protected |
The documentation for this class was generated from the following file: