NAME
ACE_Lite_MMAP_Memory_Pool -
Make a ``lighter-weight'' memory pool based ACE_Mem_Map.
SYNOPSIS
#include <ace/ACE_Memory_Pool.h>
class ACE_Lite_MMAP_Memory_Pool : public ACE_MMAP_Memory_Pool
{
public:
ACE_Lite_MMAP_Memory_Pool (
const char *pool_name = 0,
int use_fixed_addr = 1,
int write_each_page = 1,
char *base_addr = ACE_DEFAULT_BASE_ADDR
);
int sync (ssize_t len = -1, int flags = MS_SYNC);
int sync (void *addr, size_t len, int flags = MS_SYNC);
};
DESCRIPTION
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.
Initialization and termination methods.
ACE_Lite_MMAP_Memory_Pool (
const char *pool_name = 0,
int use_fixed_addr = 1,
int write_each_page = 1,
char *base_addr = ACE_DEFAULT_BASE_ADDR
);
int sync (ssize_t len = -1, int flags = MS_SYNC);
Overwrite the default sync behavior with no-op
int sync (void *addr, size_t len, int flags = MS_SYNC);
Overwrite the default sync behavior with no-op
AUTHOR
Doug Schmidt and Prashant Jain
LIBRARY
ace