|
Kyoto Cabinet
|
Lightweight mutual exclusion device. More...
#include <kcthread.h>
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. | |
Lightweight mutual exclusion device.
| kyotocabinet::SpinLock::SpinLock | ( | ) | [explicit] |
Default constructor.
Destructor.
| void kyotocabinet::SpinLock::lock | ( | ) |
Get the lock.
| bool kyotocabinet::SpinLock::lock_try | ( | ) |
Try to get the lock.
| void kyotocabinet::SpinLock::unlock | ( | ) |
Release the lock.
1.7.6.1