ACE 8.0.1
|
Make a `‘lighter-weight’' memory pool based ACE_Mem_Map. More...
#include <MMAP_Memory_Pool.h>
Public Member Functions | |
ACE_Lite_MMAP_Memory_Pool (const ACE_TCHAR *backing_store_name=0, const OPTIONS *options=0) | |
Initialize the pool. | |
virtual | ~ACE_Lite_MMAP_Memory_Pool () |
Destructor. | |
virtual int | sync (size_t len, int flags=MS_SYNC) |
Overwrite the default sync behavior with no-op. | |
virtual int | sync (int flags=MS_SYNC) |
Overwrite the default sync behavior with no-op. | |
virtual int | sync (void *addr, size_t len, int flags=MS_SYNC) |
Overwrite the default sync behavior with no-op. | |
![]() | |
ACE_MMAP_Memory_Pool (const ACE_TCHAR *backing_store_name=0, const OPTIONS *options=0) | |
Initialize the pool. | |
virtual | ~ACE_MMAP_Memory_Pool () |
Destructor. | |
virtual void * | init_acquire (size_t nbytes, size_t &rounded_bytes, int &first_time) |
Ask system for initial chunk of shared memory. | |
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. | |
virtual int | protect (size_t len, int prot=PROT_RDWR) |
virtual int | protect (int prot=PROT_RDWR) |
virtual int | protect (void *addr, size_t len, int prot=PROT_RDWR) |
virtual int | seh_selector (void *) |
virtual int | remap (void *addr) |
virtual void * | base_addr () const |
Return the base address of this memory pool. | |
virtual void | dump () const |
Dump the state of an object. | |
ACE_Mem_Map const & | mmap () const |
Get reference to underlying ACE_Mem_Map object. | |
ACE_Mem_Map & | mmap () |
Get reference to underlying ACE_Mem_Map object. | |
![]() | |
virtual | ~ACE_Event_Handler ()=default |
Destructor is virtual to enable proper cleanup. | |
virtual ACE_HANDLE | get_handle () const |
Get the I/O handle. | |
virtual void | set_handle (ACE_HANDLE) |
Set the I/O handle. | |
virtual int | priority () const |
virtual void | priority (int priority) |
Set the priority of the Event_Handler. | |
virtual int | handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
Called when input events occur (e.g., connection or data). | |
virtual int | handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
virtual int | handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
Called when an exceptional events occur (e.g., SIGURG). | |
virtual int | handle_timeout (const ACE_Time_Value ¤t_time, const void *act=0) |
virtual int | handle_exit (ACE_Process *) |
Called when a process exits. | |
virtual int | handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask) |
virtual int | handle_signal (int signum, siginfo_t *=0, ucontext_t *=0) |
virtual int | resume_handler () |
virtual int | handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
virtual int | handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
virtual void | reactor (ACE_Reactor *reactor) |
Set the event demultiplexors. | |
virtual ACE_Reactor * | reactor () const |
Get the event demultiplexors. | |
virtual ACE_Reactor_Timer_Interface * | reactor_timer_interface () const |
Get only the reactor's timer related interface. | |
virtual Reference_Count | add_reference () |
Increment reference count on the handler. | |
virtual Reference_Count | remove_reference () |
Decrement reference count on the handler. | |
Reference_Counting_Policy & | reference_counting_policy () |
Current Reference_Counting_Policy. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
![]() | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Make a `‘lighter-weight’' memory pool based ACE_Mem_Map.
This implementation allows memory to be shared between processes. However, unlike the ACE_MMAP_Memory_Pool the sync
methods are no-ops, which means that we don't pay for the price of flushing the memory to the backing store on every update. Naturally, this trades off increased performance for less reliability if the machine crashes.
ACE_Lite_MMAP_Memory_Pool::ACE_Lite_MMAP_Memory_Pool | ( | const ACE_TCHAR * | backing_store_name = 0, |
const OPTIONS * | options = 0 ) |
Initialize the pool.
|
virtual |
Destructor.
Overwrite the default sync behavior with no-op.
Reimplemented from ACE_MMAP_Memory_Pool.
Overwrite the default sync behavior with no-op.
Reimplemented from ACE_MMAP_Memory_Pool.
Overwrite the default sync behavior with no-op.
Reimplemented from ACE_MMAP_Memory_Pool.
ACE_Lite_MMAP_Memory_Pool::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.