OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lockmgr::TableInsertLockContainer< ReadLock > Class Template Reference

#include <LockMgr.h>

+ Inheritance diagram for lockmgr::TableInsertLockContainer< ReadLock >:
+ Collaboration diagram for lockmgr::TableInsertLockContainer< ReadLock >:

Static Public Member Functions

static auto acquire (const int db_id, const TableDescriptor *td)

Private Member Functions

 TableInsertLockContainer (const TableDescriptor *obj, ReadLock &&lock)

Additional Inherited Members

- Public Member Functions inherited from lockmgr::LockContainerImpl< const TableDescriptor *, ReadLock >
const TableDescriptoroperator() () const final
- Public Member Functions inherited from lockmgr::AbstractLockContainer< const TableDescriptor * >
virtual ~AbstractLockContainer ()
- Protected Member Functions inherited from lockmgr::LockContainerImpl< const TableDescriptor *, ReadLock >
 LockContainerImpl (const TableDescriptor *obj, ReadLock &&lock)
- Protected Member Functions inherited from lockmgr::TableLockContainerImpl
 TableLockContainerImpl (const std::string &table_name)
- Protected Attributes inherited from lockmgr::LockContainerImpl< const TableDescriptor *, ReadLock >
const TableDescriptorobj_
ReadLock lock_
- Protected Attributes inherited from lockmgr::TableLockContainerImpl
std::string table_name_

Detailed Description

class lockmgr::TableInsertLockContainer< ReadLock >

Definition at line 251 of file LockMgr.h.

Constructor & Destructor Documentation

Definition at line 264 of file LockMgr.h.

265  : LockContainerImpl<const TableDescriptor*, ReadLock>(obj, std::move(lock))
std::string tableName
TableLockContainerImpl(const std::string &table_name)
Definition: LockMgr.h:89

Member Function Documentation

static auto lockmgr::TableInsertLockContainer< ReadLock >::acquire ( const int  db_id,
const TableDescriptor td 

Definition at line 255 of file LockMgr.h.

References CHECK, lockmgr::TableLockMgrImpl< InsertDataLockMgr >::getReadLockForTable(), TableDescriptor::tableId, TableDescriptor::tableName, and VLOG.

255  {
256  CHECK(td);
257  ChunkKey chunk_key{db_id, td->tableId};
258  VLOG(1) << "Acquiring Table Insert Read Lock for table: " << td->tableName;
259  return TableInsertLockContainer<ReadLock>(
261  }
std::vector< int > ChunkKey
Definition: types.h:37
static ReadLock getReadLockForTable(const Catalog_Namespace::Catalog &cat, const std::string &table_name)
Definition: LockMgrImpl.h:164
std::string tableName
#define CHECK(condition)
Definition: Logger.h:209
#define VLOG(n)
Definition: Logger.h:303

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: