#include <worldmutex.h>
◆ MutexReaderWriter()
madness::MutexReaderWriter::MutexReaderWriter |
( |
| ) |
|
|
inline |
◆ ~MutexReaderWriter()
virtual madness::MutexReaderWriter::~MutexReaderWriter |
( |
| ) |
|
|
inlinevirtual |
◆ convert_read_lock_to_write_lock()
void madness::MutexReaderWriter::convert_read_lock_to_write_lock |
( |
| ) |
const |
|
inline |
◆ convert_write_lock_to_read_lock()
void madness::MutexReaderWriter::convert_write_lock_to_read_lock |
( |
| ) |
const |
|
inline |
◆ lock()
void madness::MutexReaderWriter::lock |
( |
int |
lockmode | ) |
const |
|
inline |
◆ read_lock()
void madness::MutexReaderWriter::read_lock |
( |
| ) |
const |
|
inline |
◆ read_unlock()
void madness::MutexReaderWriter::read_unlock |
( |
| ) |
const |
|
inline |
◆ try_convert_read_lock_to_write_lock()
bool madness::MutexReaderWriter::try_convert_read_lock_to_write_lock |
( |
| ) |
const |
|
inline |
◆ try_lock()
bool madness::MutexReaderWriter::try_lock |
( |
int |
lockmode | ) |
const |
|
inline |
◆ try_read_lock()
bool madness::MutexReaderWriter::try_read_lock |
( |
| ) |
const |
|
inline |
◆ try_write_lock()
bool madness::MutexReaderWriter::try_write_lock |
( |
| ) |
const |
|
inline |
◆ unlock()
void madness::MutexReaderWriter::unlock |
( |
int |
lockmode | ) |
const |
|
inline |
◆ write_lock()
void madness::MutexReaderWriter::write_lock |
( |
| ) |
const |
|
inline |
◆ write_unlock()
void madness::MutexReaderWriter::write_unlock |
( |
| ) |
const |
|
inline |
◆ NOLOCK
const int madness::MutexReaderWriter::NOLOCK =0 |
|
static |
Referenced by madness::ConcurrentHashMap< keyT, valueT, hashfunT >::find(), madness::ConcurrentHashMap< keyT, valueT, hashfunT >::find(), madness::ConcurrentHashMap< keyT, valueT, hashfunT >::insert(), madness::ConcurrentHashMap< keyT, valueT, hashfunT >::try_erase(), try_lock(), and unlock().
◆ nreader
int madness::MutexReaderWriter::nreader |
|
mutableprivate |
◆ READLOCK
const int madness::MutexReaderWriter::READLOCK =1 |
|
static |
◆ writeflag
bool madness::MutexReaderWriter::writeflag |
|
mutableprivate |
◆ WRITELOCK
const int madness::MutexReaderWriter::WRITELOCK =2 |
|
static |
Referenced by madness::ConcurrentHashMap< keyT, valueT, hashfunT >::erase(), madness::ConcurrentHashMap< keyT, valueT, hashfunT >::erase(), madness::ConcurrentHashMap< keyT, valueT, hashfunT >::find(), madness::ConcurrentHashMap< keyT, valueT, hashfunT >::insert(), try_lock(), and unlock().
The documentation for this class was generated from the following file: