#include <MMAP_Memory_Pool.h>
Inheritance diagram for ACE_Lite_MMAP_Memory_Pool:
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 (void) |
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. |
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.
Definition at line 320 of file MMAP_Memory_Pool.h.
ACE_Lite_MMAP_Memory_Pool::ACE_Lite_MMAP_Memory_Pool | ( | const ACE_TCHAR * | backing_store_name = 0 , |
|
const OPTIONS * | options = 0 | |||
) |
Initialize the pool.
Definition at line 558 of file MMAP_Memory_Pool.cpp.
References ACE_TRACE.
00560 : ACE_MMAP_Memory_Pool (backing_store_name, options) 00561 { 00562 ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::ACE_Lite_MMAP_Memory_Pool"); 00563 }
ACE_Lite_MMAP_Memory_Pool::~ACE_Lite_MMAP_Memory_Pool | ( | void | ) | [virtual] |
int ACE_Lite_MMAP_Memory_Pool::sync | ( | void * | addr, | |
size_t | len, | |||
int | flags = MS_SYNC | |||
) | [virtual] |
Overwrite the default sync behavior with no-op.
Reimplemented from ACE_MMAP_Memory_Pool.
Definition at line 584 of file MMAP_Memory_Pool.cpp.
References ACE_TRACE.
00585 { 00586 ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::sync"); 00587 return 0; 00588 }
int ACE_Lite_MMAP_Memory_Pool::sync | ( | int | flags = MS_SYNC |
) | [virtual] |
Overwrite the default sync behavior with no-op.
Reimplemented from ACE_MMAP_Memory_Pool.
Definition at line 577 of file MMAP_Memory_Pool.cpp.
References ACE_TRACE.
00578 { 00579 ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::sync"); 00580 return 0; 00581 }
int ACE_Lite_MMAP_Memory_Pool::sync | ( | size_t | len, | |
int | flags = MS_SYNC | |||
) | [virtual] |
Overwrite the default sync behavior with no-op.
Reimplemented from ACE_MMAP_Memory_Pool.
Definition at line 570 of file MMAP_Memory_Pool.cpp.
References ACE_TRACE.
00571 { 00572 ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::sync"); 00573 return 0; 00574 }