kyotocabinet::SpinLock Class Reference

Lightweight mutual exclusion device. More...

#include <kcthread.h>

List of all members.

Public Member Functions

 SpinLock ()
 Default constructor.
 ~SpinLock ()
 Destructor.
void lock ()
 Get the lock.
bool lock_try ()
 Try to get the lock.
void unlock ()
 Release the lock.

Detailed Description

Lightweight mutual exclusion device.


Constructor & Destructor Documentation

kyotocabinet::SpinLock::SpinLock (  )  [explicit]

Default constructor.

kyotocabinet::SpinLock::~SpinLock (  ) 

Destructor.


Member Function Documentation

void kyotocabinet::SpinLock::lock (  ) 

Get the lock.

bool kyotocabinet::SpinLock::lock_try (  ) 

Try to get the lock.

Returns:
true on success, or false on failure.
void kyotocabinet::SpinLock::unlock (  ) 

Release the lock.

Generated on Sun Dec 19 12:53:11 2010 for Kyoto Cabinet by  doxygen 1.6.3