Shared memory page identifier, address, or handler. More...
#include <Page.h>
Public Types | |
enum | Purpose { cachePage , ioPage , maxPurpose } |
typedef const uint32_t PageId::* | SaferBool |
Public Member Functions | |
PageId () | |
bool | set () const |
true if and only if both critical components have been initialized More... | |
operator SaferBool () const | |
Public Attributes | |
PoolId | pool |
uint32_t | number |
page number within the segment More... | |
Purpose | purpose |
page purpose More... | |
Detailed Description
Member Typedef Documentation
◆ SaferBool
typedef const uint32_t PageId::* Ipc::Mem::PageId::SaferBool |
Member Enumeration Documentation
◆ Purpose
Constructor & Destructor Documentation
◆ PageId()
Member Function Documentation
◆ operator SaferBool()
|
inline |
◆ set()
|
inline |
Definition at line 29 of file Page.h.
Referenced by operator SaferBool(), MemStore::reserveSapForWriting(), and Rock::SwapDir::reserveSlotForWriting().
Member Data Documentation
◆ number
uint32_t Ipc::Mem::PageId::number |
Definition at line 42 of file Page.h.
Referenced by Rock::SwapDir::diskOffset(), Rock::Rebuild::freeSlot(), Rock::SwapDir::noteFreeMapSlice(), MemStore::noteFreeMapSlice(), operator SaferBool(), Ipc::Mem::operator<<(), Ipc::Mem::PageStack::pageIdIsValid(), Ipc::Mem::PagePool::pagePointer(), Ipc::Mem::PageStack::pop(), Ipc::Mem::PageStack::push(), MemStore::reserveSapForWriting(), Rock::SwapDir::reserveSlotForWriting(), and set().
◆ pool
PoolId Ipc::Mem::PageId::pool |
The ID of a PagePool (and/or PageStack) this page belongs to. Positive values are (ab)used to detect in-use pages. See set(). Eventually, they may identify a PageStack in a multi-segment PagePool. These IDs also distinguish page pools/stacks in debugging logs.
Definition at line 39 of file Page.h.
Referenced by Rock::Rebuild::freeSlot(), Rock::SwapDir::noteFreeMapSlice(), MemStore::noteFreeMapSlice(), Ipc::Mem::operator<<(), Ipc::Mem::PageStack::pageIdIsValid(), Ipc::Mem::PageStack::pop(), and set().
◆ purpose
Purpose Ipc::Mem::PageId::purpose |
Definition at line 45 of file Page.h.
Referenced by Ipc::Mem::PagePool::get(), and Ipc::Mem::PagePool::put().
The documentation for this class was generated from the following file:
- src/ipc/mem/Page.h