ACE
6.1.0
|
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 (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. |
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.
ACE_Lite_MMAP_Memory_Pool::~ACE_Lite_MMAP_Memory_Pool | ( | void | ) | [virtual] |
Destructor.
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.
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.
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.