Ipc::Mem Namespace Reference

Classes

class  FlexibleArray
 
class  PageId
 Shared memory page identifier, address, or handler. More...
 
class  PagePool
 
class  PageStack
 
class  Owner
 
class  Pointer
 
class  Object
 attaches to a shared memory segment with Class object owned by Owner More...
 
class  Segment
 POSIX shared memory segment. More...
 
class  RegisteredRunner
 

Functions

std::ostream & operator<< (std::ostream &os, const PageId &page)
 writes page address (e.g., "sh_page5.3"), for debugging More...
 
bool GetPage (const PageId::Purpose purpose, PageId &page)
 sets page ID and returns true unless no free pages are found More...
 
void PutPage (PageId &page)
 makes identified page available as a free page to future GetPage() callers More...
 
char * PagePointer (const PageId &page)
 converts page handler into a temporary writeable shared memory pointer More...
 
size_t PageLimit ()
 the total number of shared memory pages that can be in use at any time More...
 
size_t PageLimit (const int purpose)
 
size_t PageLevel ()
 approximate total number of shared memory pages used now More...
 
size_t PageLevel (const int purpose)
 approximate total number of shared memory pages used now for given purpose More...
 
size_t PagesAvailable ()
 approximate total number of shared memory pages we can allocate now More...
 
size_t PagesAvailable (const int purpose)
 
size_t PageSize ()
 returns page size in bytes; all pages are assumed to be the same size More...
 
void NotePageNeed (const int purpose, const int count)
 claim the need for a number of pages for a given purpose More...
 

Function Documentation

bool Ipc::Mem::GetPage ( const PageId::Purpose  purpose,
PageId &  page 
)
void Ipc::Mem::NotePageNeed ( const int  purpose,
const int  count 
)

Definition at line 72 of file Pages.cc.

References Must, and TheLimits.

Referenced by IpcIoRr::claimMemoryNeeds(), and MemStoreRr::claimMemoryNeeds().

std::ostream & Ipc::Mem::operator<< ( std::ostream &  os,
const PageId &  page 
)

Definition at line 16 of file Page.cc.

References Ipc::Mem::PageId::number, and Ipc::Mem::PageId::pool.

size_t Ipc::Mem::PageLevel ( const int  purpose)

Definition at line 86 of file Pages.cc.

References Ipc::Mem::PagePool::level().

size_t Ipc::Mem::PageLimit ( const int  purpose)

the total number of shared memory pages that can be in use at any time for given purpose

Definition at line 64 of file Pages.cc.

References Must, and TheLimits.

size_t Ipc::Mem::PagesAvailable ( )
inline

Definition at line 47 of file Pages.h.

References PageLevel(), and PageLimit().

Referenced by GetPage(), and MemStore::stat().

size_t Ipc::Mem::PagesAvailable ( const int  purpose)
inline

approximate total number of shared memory pages we can allocate now for given purpose

Definition at line 51 of file Pages.h.

References PageLevel(), and PageLimit().

void Ipc::Mem::PutPage ( PageId &  page)

Definition at line 41 of file Pages.cc.

References Must, and Ipc::Mem::PagePool::put().

Referenced by diskerWrite(), MemStore::noteFreeMapSlice(), and IpcIoFile::readCompleted().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors