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

#include <LockMgr.h>

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

Static Public Member Functions

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

Private Member Functions

 TableDataLockContainer (const TableDescriptor *obj, WriteLock &&lock)
 

Additional Inherited Members

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

Detailed Description

template<>
class lockmgr::TableDataLockContainer< WriteLock >

Definition at line 193 of file LockMgr.h.

Constructor & Destructor Documentation

Definition at line 205 of file LockMgr.h.

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

Member Function Documentation

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

Definition at line 196 of file LockMgr.h.

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

196  {
197  CHECK(td);
198  ChunkKey chunk_key{db_id, td->tableId};
199  VLOG(1) << "Acquiring Table Data Write Lock for table: " << td->tableName;
200  return TableDataLockContainer<WriteLock>(
202  }
std::vector< int > ChunkKey
Definition: types.h:36
static WriteLock getWriteLockForTable(Catalog_Namespace::Catalog &cat, const std::string &table_name)
Definition: LockMgrImpl.h:225
std::string tableName
#define CHECK(condition)
Definition: Logger.h:222
#define VLOG(n)
Definition: Logger.h:316

+ Here is the call graph for this function:


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