Public Types |
typedef ACE_Pagefile_Memory_Pool_Options | OPTIONS |
Public Methods |
| ACE_Pagefile_Memory_Pool (const ACE_TCHAR *backing_store_name=0, const OPTIONS *options=0) |
| Initialize the pool. More...
|
void * | init_acquire (size_t nbytes, size_t &rounded_bytes, int &first_time) |
| Ask system for initial chunk of shared memory. More...
|
void * | acquire (size_t nbytes, size_t &rounded_bytes) |
| Acquire at least <nbytes> from the memory pool. <rounded_bytes> is the actual number of bytes allocated. More...
|
int | release (void) |
| Instruct the memory pool to release all of its resources. More...
|
virtual int | seh_selector (void *) |
| Win32 Structural exception selector. More...
|
int | remap (void *addr) |
| Try to extend the virtual address space so that <addr> is now covered by the address mapping. More...
|
size_t | round_to_page_size (size_t nbytes) |
| Round up to system page size. More...
|
size_t | round_to_chunk_size (size_t nbytes) |
| Round up to the chunk size required by the operation system. More...
|
int | sync (ssize_t=-1, int=MS_SYNC) |
int | sync (void *, size_t, int=MS_SYNC) |
int | protect (ssize_t=-1, int=PROT_RDWR) |
int | protect (void *, size_t, int=PROT_RDWR) |
virtual void * | base_addr (void) const |
| Return the base address of this memory pool, 0 if base_addr never changes. More...
|
void | dump (void) const |
Protected Methods |
int | map (int &firstTime, int appendBytes=0) |
| Map portions or the entire pool into the local virtual address space. More...
|
int | unmap (void) |
| Release the mapping. More...
|
Private Attributes |
Control_Block | local_cb_ |
| Description of what our process mapped. More...
|
Control_Block * | shared_cb_ |
| Shared memory pool statistics. More...
|
ACE_HANDLE | object_handle_ |
| File mapping handle. More...
|
size_t | page_size_ |
| System page size. More...
|
ACE_TCHAR | backing_store_name_ [MAXPATHLEN] |
| Name of the backing store where the shared memory pool is kept. More...
|