Kyoto Cabinet
|
Reader-writer locking device. More...
#include <kcthread.h>
Public Member Functions | |
RWLock () | |
Default constructor. | |
~RWLock () | |
Destructor. | |
void | lock_writer () |
Get the writer lock. | |
bool | lock_writer_try () |
Try to get the writer lock. | |
void | lock_reader () |
Get a reader lock. | |
bool | lock_reader_try () |
Try to get a reader lock. | |
void | unlock () |
Release the lock. |
Reader-writer locking device.
kyotocabinet::RWLock::RWLock | ( | ) | [explicit] |
Default constructor.
Destructor.
void kyotocabinet::RWLock::lock_writer | ( | ) |
Get the writer lock.
Try to get the writer lock.
void kyotocabinet::RWLock::lock_reader | ( | ) |
Get a reader lock.
Try to get a reader lock.
void kyotocabinet::RWLock::unlock | ( | ) |
Release the lock.