![]() |
mutable
A Database System for Research and Fast Prototyping
|
#include <reader_writer_lock.hpp>
Public Member Functions | |
read_lock (reader_writer_mutex &rw_mutex) | |
read_lock (reader_writer_mutex &rw_mutex, std::defer_lock_t) | |
read_lock (reader_writer_mutex &rw_mutex, std::adopt_lock_t) | |
read_lock (const read_lock &)=delete | |
read_lock (read_lock &&other) | |
~read_lock () | |
read_lock & | operator= (read_lock &&other) |
bool | owns_lock () const |
void | lock () |
void | unlock () |
Protected Attributes | |
std::reference_wrapper< reader_writer_mutex > | rw_mutex_ |
bool | owns_lock_ {false} |
Friends | |
void | swap (read_lock &first, read_lock &second) |
Definition at line 312 of file reader_writer_lock.hpp.
|
inlineexplicit |
Definition at line 325 of file reader_writer_lock.hpp.
References lock().
|
inline |
Definition at line 326 of file reader_writer_lock.hpp.
|
inline |
Definition at line 327 of file reader_writer_lock.hpp.
|
delete |
|
inline |
Definition at line 329 of file reader_writer_lock.hpp.
References swap.
|
inline |
Definition at line 331 of file reader_writer_lock.hpp.
References owns_lock(), and unlock().
|
inline |
Definition at line 337 of file reader_writer_lock.hpp.
References M_insist, owns_lock(), owns_lock_, and rw_mutex_.
Referenced by read_lock().
Definition at line 333 of file reader_writer_lock.hpp.
References swap.
|
inline |
Definition at line 335 of file reader_writer_lock.hpp.
References owns_lock_.
Referenced by lock(), m::upgrade_lock::owns_read_lock(), unlock(), and ~read_lock().
|
inline |
Definition at line 338 of file reader_writer_lock.hpp.
References M_insist, owns_lock(), owns_lock_, and rw_mutex_.
Referenced by ~read_lock().
Definition at line 314 of file reader_writer_lock.hpp.
Referenced by operator=(), and read_lock().
|
protected |
Definition at line 322 of file reader_writer_lock.hpp.
Referenced by lock(), owns_lock(), unlock(), and m::upgrade_lock::upgrade().
|
protected |
Definition at line 321 of file reader_writer_lock.hpp.
Referenced by lock(), unlock(), and m::upgrade_lock::upgrade().