PagePool.h
Go to the documentation of this file.
30 static Owner *Init(const char *const shmId, const Ipc::Mem::PoolId stackId, const unsigned int capacity, const size_t pageSize);
Definition: Pointer.h:26
Definition: PagePool.h:26
char * pagePointer(const PageId &page)
converts page handler into a temporary writeable shared memory pointer
Definition: PagePool.cc:70
Levels_t *const theLevels
number of shared memory pages used now for each purpose
Definition: PagePool.h:55
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
Definition: Pointer.h:83
Definition: IpcIoFile.h:24