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

#include <LockMgr.h>

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

Static Public Member Functions

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

Private Member Functions

 TableInsertLockContainer (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 Member Functions inherited from lockmgr::TableLockContainerImpl
 TableLockContainerImpl (const std::string &table_name)
 
- Protected Attributes inherited from lockmgr::LockContainerImpl< const TableDescriptor *, WriteLock >
const TableDescriptorobj_
 
WriteLock lock_
 
- Protected Attributes inherited from lockmgr::TableLockContainerImpl
std::string table_name_
 

Detailed Description

template<>
class lockmgr::TableInsertLockContainer< WriteLock >

Definition at line 232 of file LockMgr.h.

Constructor & Destructor Documentation

Definition at line 245 of file LockMgr.h.

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

Member Function Documentation

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

Definition at line 236 of file LockMgr.h.

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

236  {
237  CHECK(td);
238  ChunkKey chunk_key{db_id, td->tableId};
239  VLOG(1) << "Acquiring Table Insert Write Lock for table: " << td->tableName;
240  return TableInsertLockContainer<WriteLock>(
242  }
std::vector< int > ChunkKey
Definition: types.h:37
std::string tableName
static WriteLock getWriteLockForTable(const Catalog_Namespace::Catalog &cat, const std::string &table_name)
Definition: LockMgrImpl.h:155
#define CHECK(condition)
Definition: Logger.h:203
#define VLOG(n)
Definition: Logger.h:297

+ Here is the call graph for this function:


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