kyotocabinet::SlottedSpinRWLock< SLOTNUM > Class Template Reference
Slotted lightweight reader-writer lock devices.
More...
#include <kcthread.h>
List of all members.
Detailed Description
template<int32_t SLOTNUM>
class kyotocabinet::SlottedSpinRWLock< SLOTNUM >
Slotted lightweight reader-writer lock devices.
- 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 writer lock of a slot.
- Parameters:
-
template<int32_t SLOTNUM>
Get the reader lock of a slot.
- Parameters:
-
template<int32_t SLOTNUM>
Release the lock of a slot.
- Parameters:
-
template<int32_t SLOTNUM>
Get the writer locks of all slots.
template<int32_t SLOTNUM>
Get the reader locks of all slots.
template<int32_t SLOTNUM>
Release the locks of all slots.