kyotocabinet::SlottedMutex< SLOTNUM > Class Template Reference
Slotted mutex device.
More...
#include <kcthread.h>
List of all members.
Public Member Functions |
| SlottedMutex () |
| Constructor.
|
| ~SlottedMutex () |
| Destructor.
|
void | lock (int32_t idx) |
| Get the lock of a slot.
|
void | unlock (int32_t idx) |
| Release the lock of a slot.
|
void | lock_all () |
| Get the locks of all slots.
|
void | unlock_all () |
| Release the locks of all slots.
|
Detailed Description
template<int32_t SLOTNUM>
class kyotocabinet::SlottedMutex< SLOTNUM >
Slotted mutex device.
- Parameters:
-
| SLOTNUM | the number of slots. |
Constructor & Destructor Documentation
template<int32_t SLOTNUM>
template<int32_t SLOTNUM>
Member Function Documentation
template<int32_t SLOTNUM>
Get the lock of a slot.
- Parameters:
-
template<int32_t SLOTNUM>
Release the lock of a slot.
- Parameters:
-
template<int32_t SLOTNUM>
Get the locks of all slots.
template<int32_t SLOTNUM>
Release the locks of all slots.