Tkrzw
|
Scoped lock with multiple mutexes for a hash table. More...
#include <tkrzw_thread_util.h>
Public Member Functions | |
ScopedHashLockMulti (HashMutex< SHAREDMUTEX > &mutex, std::vector< std::string_view > data_list, bool writable) | |
Constructor to lock multiple buckets. More... | |
~ScopedHashLockMulti () | |
Destructor. More... | |
ScopedHashLockMulti (const ScopedHashLockMulti &rhs)=delete | |
Copy and assignment are disabled. More... | |
ScopedHashLockMulti & | operator= (const ScopedHashLockMulti &rhs)=delete |
const std::vector< int64_t > | GetBucketIndices () const |
Gets the indices of the buckets. More... | |
Scoped lock with multiple mutexes for a hash table.
tkrzw::ScopedHashLockMulti< SHAREDMUTEX >::ScopedHashLockMulti | ( | HashMutex< SHAREDMUTEX > & | mutex, |
std::vector< std::string_view > | data_list, | ||
bool | writable | ||
) |
Constructor to lock multiple buckets.
mutex | A hash mutex. |
data_list | The data list to be set in the hash table. |
writable | True for exclusive lock or false for shared lock. |
tkrzw::ScopedHashLockMulti< SHAREDMUTEX >::~ScopedHashLockMulti |
Destructor.
|
explicitdelete |
Copy and assignment are disabled.
const std::vector< int64_t > tkrzw::ScopedHashLockMulti< SHAREDMUTEX >::GetBucketIndices |
Gets the indices of the buckets.