#include <Memory_Pool.h>
Collaboration diagram for ACE_Local_Memory_Pool:
Public Types | |
typedef ACE_Local_Memory_Pool_Options | OPTIONS |
Public Methods | |
ACE_Local_Memory_Pool (const ACE_TCHAR *backing_store_name = 0, const OPTIONS *options = 0) | |
Initialize the pool. | |
virtual | ~ACE_Local_Memory_Pool (void) |
virtual void* | init_acquire (size_t nbytes, size_t &rounded_bytes, int &first_time) |
Ask system for initial chunk of local memory. | |
virtual 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. | |
virtual int | release (void) |
Instruct the memory pool to release all of its resources. | |
virtual int | sync (ssize_t len = -1, int flags = MS_SYNC) |
virtual int | sync (void *addr, size_t len, int flags = MS_SYNC) |
Sync <len> bytes of the memory region to the backing store starting at . | |
virtual int | protect (ssize_t len = -1, int prot = PROT_RDWR) |
virtual int | protect (void *addr, size_t len, int prot = PROT_RDWR) |
Change the protection of the pages of the mapped region to <prot> starting at up to <len> bytes. | |
virtual int | seh_selector (void *) |
virtual int | remap (void *addr) |
virtual void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Protected Methods | |
virtual size_t | round_up (size_t nbytes) |
Protected Attributes | |
ACE_Unbounded_Set<char *> | allocated_chunks_ |
List of memory that we have allocated. |
|
|
|
Initialize the pool.
|
|
|
|
Acquire at least NBYTES from the memory pool. ROUNDED_BYTES is the actual number of bytes allocated.
|
|
Dump the state of an object.
|
|
Ask system for initial chunk of local memory.
|
|
Change the protection of the pages of the mapped region to <prot> starting at up to <len> bytes.
|
|
Change the protection of the pages of the mapped region to <prot> starting at <this->base_addr_> up to <len> bytes. If <len> == -1 then change protection of all pages in the mapped region. |
|
Instruct the memory pool to release all of its resources.
|
|
Try to extend the virtual address space so that is now covered by the address mapping. Always returns 0 since we can't remap a local memory pool. |
|
|
|
Win32 Structural exception selector. The return value decides how to handle memory pool related structural exceptions. Returns 1, 0, or , -1. |
|
Sync <len> bytes of the memory region to the backing store starting at .
|
|
Sync <len> bytes of the memory region to the backing store starting at <this->base_addr_>. If <len> == -1 then sync the whole region. |
|
Declare the dynamic allocation hooks.
|
|
List of memory that we have allocated.
|