Kyoto Cabinet
Public Member Functions
kyotocabinet::ScopedSpinRWLock Class Reference

Scoped reader-writer locking device. More...

#include <kcthread.h>

List of all members.

Public Member Functions

 ScopedSpinRWLock (SpinRWLock *srwlock, bool writer)
 Constructor.
 ~ScopedSpinRWLock ()
 Destructor.

Detailed Description

Scoped reader-writer locking device.


Constructor & Destructor Documentation

kyotocabinet::ScopedSpinRWLock::ScopedSpinRWLock ( SpinRWLock srwlock,
bool  writer 
) [explicit]

Constructor.

Parameters:
srwlocka spin rwlock to lock the block.
writertrue for writer lock, or false for reader lock.

Destructor.