Public Types |
| typedef ACE_Shared_Memory_Pool_Options | OPTIONS |
Public Methods |
| | ACE_Shared_Memory_Pool (const ACE_TCHAR *backing_store_name=0, const OPTIONS *options=0) |
| | Initialize the pool. More...
|
| virtual | ~ACE_Shared_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) |
| 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 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 the memory region to the backing store starting at <addr_>. More...
|
| 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 <addr> up to <len> bytes. More...
|
| virtual void * | base_addr (void) const |
| | Return the base address of this memory pool, 0 if base_addr never changes. More...
|
| virtual void | dump (void) const |
| | Dump the state of an object. 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...
|
| virtual int | commit_backing_store_name (size_t rounded_bytes, off_t &offset) |
| virtual int | find_seg (const void *const searchPtr, off_t &offset, size_t &counter) |
| | Find the segment that contains the searchPtr. More...
|
| virtual int | in_use (off_t &offset, size_t &counter) |
| | Determine how much memory is currently in use. More...
|
| virtual int | handle_signal (int signum, siginfo_t *, ucontext_t *) |
| | Handle SIGSEGV and SIGBUS signals to remap shared memory properly. More...
|
Protected Attributes |
| void * | base_addr_ |
| size_t | file_perms_ |
| | File permissions to use when creating/opening a segment. More...
|
| size_t | max_segments_ |
| | Number of shared memory segments in the <SHM_TABLE> table. More...
|
| off_t | minimum_bytes_ |
| | What the minimim bytes of the initial segment should be. More...
|
| size_t | segment_size_ |
| | Shared memory segment size. More...
|
| key_t | base_shm_key_ |
| | Base shared memory key for the segment. More...
|
| ACE_Sig_Handler | signal_handler_ |
| | Handles SIGSEGV. More...
|