libfoedus-core
FOEDUS Core Library
|
A dummy page layout to store RwLockableXctId. More...
A dummy page layout to store RwLockableXctId.
We need to fake a valid page layout because that's what our UniversalLockId conversion logic assumes.
Definition at line 184 of file xct_mcs_adapter_impl.hpp.
#include <xct_mcs_adapter_impl.hpp>
Public Member Functions | |
void | init (storage::StorageId dummy_storage_id, uint16_t node_id, uint32_t in_node_index) |
Public Attributes | |
storage::PageHeader | header_ |
char | header_pad_ [kMcsMockDataPageHeaderPad] |
RwLockableXctId | tid_ [kMcsMockDataPageLocksPerPage] |
McsWwLock | ww_ [kMcsMockDataPageLocksPerPage] |
char | filler_ [kMcsMockDataPageFiller] |
|
inline |
Definition at line 185 of file xct_mcs_adapter_impl.hpp.
References header_, foedus::storage::PageHeader::init_volatile(), foedus::storage::kArrayPageType, foedus::xct::kMcsMockDataPageLocksPerPage, foedus::xct::McsWwLock::reset(), foedus::xct::RwLockableXctId::reset(), foedus::storage::VolatilePagePointer::set(), tid_, and ww_.
Referenced by foedus::xct::McsMockNode< RW_BLOCK >::init().
char foedus::xct::McsMockDataPage::filler_[kMcsMockDataPageFiller] |
Definition at line 198 of file xct_mcs_adapter_impl.hpp.
storage::PageHeader foedus::xct::McsMockDataPage::header_ |
Definition at line 194 of file xct_mcs_adapter_impl.hpp.
Referenced by init().
char foedus::xct::McsMockDataPage::header_pad_[kMcsMockDataPageHeaderPad] |
Definition at line 195 of file xct_mcs_adapter_impl.hpp.
RwLockableXctId foedus::xct::McsMockDataPage::tid_[kMcsMockDataPageLocksPerPage] |
Definition at line 196 of file xct_mcs_adapter_impl.hpp.
Referenced by foedus::xct::McsMockContext< RW_BLOCK >::get_rw_lock_address(), and init().
McsWwLock foedus::xct::McsMockDataPage::ww_[kMcsMockDataPageLocksPerPage] |
Definition at line 197 of file xct_mcs_adapter_impl.hpp.
Referenced by foedus::xct::McsMockContext< RW_BLOCK >::get_ww_lock_address(), and init().