An implementation of a read-write mutex based on tbb::queueing_rw_mutex
.
More...
Public Member Functions | |
read_write_mutex (read_write_mutex const &)=delete | |
read_write_mutex & | operator= (read_write_mutex const &)=delete |
void | lock (const read_lock_t) |
void | lock (const write_lock_t=write_lock) |
bool | try_lock (const read_lock_t) |
bool | try_lock (const write_lock_t=write_lock) |
void | unlock (void) |
An implementation of a read-write mutex based on tbb::queueing_rw_mutex
.
It implements the interface of std::mutex
, enhanced to support read or write locking.
The default locking policy is write locking.