Kyoto Cabinet
Public Member Functions
kyotocabinet::ScopedRWLock Class Reference

Scoped reader-writer locking device. More...

#include <kcthread.h>

List of all members.

Public Member Functions

 ScopedRWLock (RWLock *rwlock, bool writer)
 Constructor.
 ~ScopedRWLock ()
 Destructor.

Detailed Description

Scoped reader-writer locking device.


Constructor & Destructor Documentation

kyotocabinet::ScopedRWLock::ScopedRWLock ( RWLock rwlock,
bool  writer 
) [explicit]

Constructor.

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

Destructor.