Public Types |
typedef ACE_Sbrk_Memory_Pool_Options | OPTIONS |
Public Methods |
| ACE_Sbrk_Memory_Pool (const ACE_TCHAR *backing_store_name=0, const OPTIONS *options=0) |
| Initialize the pool. More...
|
virtual | ~ACE_Sbrk_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. More...
|
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. More...
|
virtual int | release (int destroy=1) |
| Instruct the memory pool to release all of its resources. More...
|
virtual int | sync (ssize_t len=-1, int flags=MS_SYNC) |
| Sync <len> bytes of the memory region to the backing store starting at <this->base_addr_>. More...
|
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 <addr_>. More...
|
virtual int | protect (ssize_t len=-1, int prot=PROT_RDWR) |
| Change the protection of the pages of the mapped region to <prot> starting at <this->base_addr_> up to <len> bytes. More...
|
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 <addr> up to <len> bytes. More...
|
virtual void | dump (void) const |
| Dump the state of an object. More...
|
virtual void * | base_addr (void) const |
| Return the base address of this memory pool, 0 if base_addr never changes. More...
|
Public Attributes |
| ACE_ALLOC_HOOK_DECLARE |
| Declare the dynamic allocation hooks. More...
|
Protected Methods |
virtual size_t | round_up (size_t nbytes) |
| Implement the algorithm for rounding up the request to an appropriate chunksize. More...
|