Class lockmgr::TableLockMgrImpl

template<class T>
class TableLockMgrImpl

Public Functions

MutexType *getTableMutex(const ChunkKey table_key)
std::set<ChunkKey> getLockedTables() const

Public Static Functions

static WriteLock getWriteLockForTable(const Catalog_Namespace::Catalog &cat, const std::string &table_name)
static WriteLock getWriteLockForTable(const ChunkKey table_key)
static ReadLock getReadLockForTable(const Catalog_Namespace::Catalog &cat, const std::string &table_name)
static ReadLock getReadLockForTable(const ChunkKey table_key)

Protected Functions

TableLockMgrImpl()

Protected Attributes

std::mutex map_mutex_
std::map<ChunkKey, std::unique_ptr<MutexType>> table_mutex_map_