libfoedus-core
FOEDUS Core Library
|
An iterator over CurrentLockList to find entries along with sorted write-set. More...
An iterator over CurrentLockList to find entries along with sorted write-set.
This is used from precommit_xct_lock() to iterate over CurrentLockList. Separated as an iterator object by itself for readability and testability.
Definition at line 243 of file xct_manager_pimpl.hpp.
#include <xct_manager_pimpl.hpp>
Public Member Functions | |
CurrentLockListIteratorForWriteSet (const WriteXctAccess *write_set, const CurrentLockList *cll, uint32_t write_set_size) | |
void | next_writes () |
Look for next record's write-set(s). More... | |
bool | is_valid () const |
Public Attributes | |
const WriteXctAccess *const | write_set_ |
const CurrentLockList *const | cll_ |
const uint32_t | write_set_size_ |
uint32_t | write_cur_pos_ |
inclusive beginning of write-sets of the current record in write-set. More... | |
uint32_t | write_next_pos_ |
exclusive end of write-sets of the current record in write-set. More... | |
LockListPosition | cll_pos_ |
CLL entry that corresponds to the current record in write-set. More... | |
|
inline |
Definition at line 277 of file xct_manager_pimpl.hpp.
References foedus::xct::CurrentLockList::assert_sorted(), cll_, cll_pos_, foedus::xct::kLockListPositionInvalid, next_writes(), write_cur_pos_, and write_next_pos_.
|
inline |
Definition at line 259 of file xct_manager_pimpl.hpp.
References write_cur_pos_, and write_next_pos_.
Referenced by foedus::xct::XctManagerPimpl::precommit_xct_lock().
|
inline |
Look for next record's write-set(s).
Definition at line 292 of file xct_manager_pimpl.hpp.
References ASSERT_ND, cll_, cll_pos_, foedus::xct::CurrentLockList::get_entry(), foedus::xct::RecordXctAccess::owner_lock_id_, foedus::xct::LockEntry::universal_lock_id_, write_cur_pos_, write_next_pos_, write_set_, and write_set_size_.
Referenced by CurrentLockListIteratorForWriteSet().
const CurrentLockList* const foedus::xct::CurrentLockListIteratorForWriteSet::cll_ |
Definition at line 262 of file xct_manager_pimpl.hpp.
Referenced by CurrentLockListIteratorForWriteSet(), and next_writes().
LockListPosition foedus::xct::CurrentLockListIteratorForWriteSet::cll_pos_ |
CLL entry that corresponds to the current record in write-set.
Definition at line 274 of file xct_manager_pimpl.hpp.
Referenced by CurrentLockListIteratorForWriteSet(), and next_writes().
uint32_t foedus::xct::CurrentLockListIteratorForWriteSet::write_cur_pos_ |
inclusive beginning of write-sets of the current record in write-set.
Definition at line 268 of file xct_manager_pimpl.hpp.
Referenced by CurrentLockListIteratorForWriteSet(), is_valid(), and next_writes().
uint32_t foedus::xct::CurrentLockListIteratorForWriteSet::write_next_pos_ |
exclusive end of write-sets of the current record in write-set.
Definition at line 272 of file xct_manager_pimpl.hpp.
Referenced by CurrentLockListIteratorForWriteSet(), is_valid(), and next_writes().
const WriteXctAccess* const foedus::xct::CurrentLockListIteratorForWriteSet::write_set_ |
Definition at line 261 of file xct_manager_pimpl.hpp.
Referenced by next_writes().
const uint32_t foedus::xct::CurrentLockListIteratorForWriteSet::write_set_size_ |
Definition at line 263 of file xct_manager_pimpl.hpp.
Referenced by next_writes().