PagePool.cc
Go to the documentation of this file.
19Ipc::Mem::PagePool::Init(const char *const shmId, const Ipc::Mem::PoolId stackId, const unsigned int capacity, const size_t pageSize)
Definition: Pointer.h:26
char * pagePointer(const PageId &page)
converts page handler into a temporary writeable shared memory pointer
Definition: PagePool.cc:70
static Owner * Init(const char *const shmId, const Ipc::Mem::PoolId stackId, const unsigned int capacity, const size_t pageSize)
Definition: PagePool.cc:19
void put(PageId &page)
makes identified page available as a free page to future get() callers
Definition: PagePool.cc:58
bool get(const PageId::Purpose purpose, PageId &page)
sets page ID and returns true unless no free pages are found
Definition: PagePool.cc:46
PageStack construction and SharedMemorySize calculation parameters.
Definition: PageStack.h:123
bool createFull
whether a newly created PageStack should be prefilled with PageIds
Definition: PageStack.h:130
Definition: PageStack.h:109