libfoedus-core
FOEDUS Core Library
foedus::xct::PageComparator Struct Reference

Detailed Description

Definition at line 66 of file sysxct_impl.hpp.

#include <sysxct_impl.hpp>

Public Member Functions

bool operator() (storage::Page *p1, storage::Page *p2) const
 

Member Function Documentation

bool foedus::xct::PageComparator::operator() ( storage::Page p1,
storage::Page p2 
) const
inline

Definition at line 67 of file sysxct_impl.hpp.

References foedus::storage::Page::get_volatile_page_id(), and foedus::xct::to_universal_lock_id().

67  {
68  auto id1 = to_universal_lock_id(p1->get_volatile_page_id(), reinterpret_cast<uintptr_t>(p1));
69  auto id2 = to_universal_lock_id(p2->get_volatile_page_id(), reinterpret_cast<uintptr_t>(p2));
70  return id1 < id2;
71  }
UniversalLockId to_universal_lock_id(storage::VolatilePagePointer page_id, uintptr_t addr)
Definition: sysxct_impl.hpp:63

Here is the call graph for this function:


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