OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lockmgr::TableDataLockContainer< ReadLock > Class Template Reference

#include <LockMgr.h>

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

Static Public Member Functions

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

Private Member Functions

 TableDataLockContainer (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 Attributes inherited from lockmgr::LockContainerImpl< const TableDescriptor *, ReadLock >
const TableDescriptorobj_
 
ReadLock lock_
 

Detailed Description

template<>
class lockmgr::TableDataLockContainer< ReadLock >

Definition at line 211 of file LockMgr.h.

Constructor & Destructor Documentation

Definition at line 223 of file LockMgr.h.

224  : LockContainerImpl<const TableDescriptor*, ReadLock>(obj, std::move(lock)) {}

Member Function Documentation

static auto lockmgr::TableDataLockContainer< ReadLock >::acquire ( const int  db_id,
const TableDescriptor td 
)
inlinestatic

Definition at line 214 of file LockMgr.h.

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

214  {
215  CHECK(td);
216  ChunkKey chunk_key{db_id, td->tableId};
217  VLOG(1) << "Acquiring Table Data Read Lock for table: " << td->tableName;
218  return TableDataLockContainer<ReadLock>(
220  }
std::vector< int > ChunkKey
Definition: types.h:36
std::string tableName
static ReadLock getReadLockForTable(Catalog_Namespace::Catalog &cat, const std::string &table_name)
Definition: LockMgrImpl.h:238
#define CHECK(condition)
Definition: Logger.h:291
#define VLOG(n)
Definition: Logger.h:388

+ Here is the call graph for this function:


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