Shared memory page identifier, address, or handler.
uint32_t number
page number within the segment
char * pagePointer(const PageId &page)
converts page handler into a temporary writeable shared memory pointer
PageStack::Levels_t Levels_t
PagePool(const char *const id)
unsigned int capacity() const
static Owner * Init(const char *const shmId, const Ipc::Mem::PoolId stackId, const unsigned int capacity, const size_t pageSize)
size_t level() const
approximate number of shared memory pages used now
void put(PageId &page)
makes identified page available as a free page to future get() callers
bool get(const PageId::Purpose purpose, PageId &page)
sets page ID and returns true unless no free pages are found
PageStack construction and SharedMemorySize calculation parameters.
PageCount capacity
the maximum number of pages
size_t pageSize
page size, used to calculate shared memory size
bool createFull
whether a newly created PageStack should be prefilled with PageIds