#include <shared_mutex.hpp>
Public Member Functions | |
shared_mutex_base () | |
~shared_mutex_base () | |
shared_mutex_base (const shared_mutex_base &)=delete | |
shared_mutex_base & | operator= (const shared_mutex_base &)=delete |
bool | try_lock () |
void | unlock () |
void | lock_shared () |
bool | try_lock_shared () |
Protected Types | |
typedef std::mutex | mutex_t |
typedef std::condition_variable | cond_t |
typedef unsigned | count_t |
Protected Attributes | |
mutex_t | mut_ |
cond_t | gate1_ |
count_t | state_ |
Static Protected Attributes | |
static const count_t | write_entered_ = 1U << (sizeof(count_t) * CHAR_BIT - 1) |
static const count_t | n_readers_ = ~write_entered_ |
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
|
delete |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
staticprotected |
|
protected |