|
Tkrzw
|
Scoped lock with a slotted shared mutex. More...
#include <tkrzw_thread_util.h>
Public Member Functions | |
| ScopedSlottedLock (SlottedMutex< SHAREDMUTEX > &mutex, int32_t index, bool writable) | |
| Constructor. More... | |
| ~ScopedSlottedLock () | |
| Destructor. More... | |
| ScopedSlottedLock (const ScopedSlottedLock &rhs)=delete | |
| Copy and assignment are disabled. More... | |
| ScopedSlottedLock & | operator= (const ScopedSlottedLock &rhs)=delete |
Scoped lock with a slotted shared mutex.
| tkrzw::ScopedSlottedLock< SHAREDMUTEX >::ScopedSlottedLock | ( | SlottedMutex< SHAREDMUTEX > & | 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< SHAREDMUTEX >::~ScopedSlottedLock |
Destructor.
|
explicitdelete |
Copy and assignment are disabled.