|
Squid Web Cache master
|
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 | |
| operator SaferBool () const | |
Public Attributes | |
| PoolId | pool |
| uint32_t | number |
| page number within the segment | |
| Purpose | purpose |
| page purpose | |
| typedef const uint32_t PageId::* Ipc::Mem::PageId::SaferBool |
|
inline |
|
inline |
Definition at line 29 of file Page.h.
Referenced by operator SaferBool(), MemStore::reserveSapForWriting(), and Rock::SwapDir::reserveSlotForWriting().
| 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().
| 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 Ipc::Mem::PageId::purpose |
Definition at line 45 of file Page.h.
Referenced by Ipc::Mem::PagePool::get(), and Ipc::Mem::PagePool::put().