Tkrzw
|
Scoped lock with a slotted shared mutex. More...
#include <tkrzw_thread_util.h>
Public Member Functions | |
ScopedSlottedLock (SlottedMutex &mutex, int32_t index, bool writable) | |
Constructor. More... | |
~ScopedSlottedLock () | |
Destructor. More... | |
Scoped lock with a slotted shared mutex.
tkrzw::ScopedSlottedLock::ScopedSlottedLock | ( | SlottedMutex & | mutex, |
int32_t | index, | ||
bool | writable | ||
) |
Constructor.
mutex | A slotted shared mutex. |
index | The index of a slot. Negative means all slots. |
writable | True for exclusive lock. False for shared lock. |
tkrzw::ScopedSlottedLock::~ScopedSlottedLock | ( | ) |
Destructor.