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