Kyoto Cabinet
|
Scoped reader-writer locking device. More...
#include <kcthread.h>
Public Member Functions | |
ScopedRWLock (RWLock *rwlock, bool writer) | |
Constructor. | |
~ScopedRWLock () | |
Destructor. |
Scoped reader-writer locking device.
kyotocabinet::ScopedRWLock::ScopedRWLock | ( | RWLock * | rwlock, |
bool | writer | ||
) | [explicit] |
Constructor.
rwlock | a rwlock to lock the block. |
writer | true for writer lock, or false for reader lock. |
Destructor.