ACE_Lite_MMAP_Memory_Pool(3)

ACE_Lite_MMAP_Memory_Pool3

Make a ``lighter-weight'' memory pool based ace_mem_map.

Usage

#include <ace/ACE_Memory_Pool.h>
class ACE_Lite_MMAP_Memory_Pool : public ACE_MMAP_Memory_Pool
{
  public:
    ACE_Lite_MMAP_Memory_Pool (
        LPCTSTR backing_store_name = 0,
        const OPTIONS *options = 0
        );
    virtual ~ACE_Lite_MMAP_Memory_Pool (void);
    virtual int sync (ssize_t len = -1, int flags = MS_SYNC);
    virtual int sync (void *addr, size_t len, int flags = MS_SYNC);
};

Overview

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 (
    LPCTSTR backing_store_name = 0,
    const OPTIONS *options = 0
    );

Initialize the pool.

virtual ~ACE_Lite_MMAP_Memory_Pool (void);
virtual int sync (ssize_t len = -1, 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

Library

ace

Author

Doug Schmidt and Prashant Jain

From libace-doc 5.0.7-4 in Debian 2.2 (Potato). Parsed by carta from the page's man source.