ACE_Lite_MMAP_Memory_Pool Class Reference

Make a ``lighter-weight'' memory pool based ACE_Mem_Map. More...

#include <MMAP_Memory_Pool.h>

Inheritance diagram for ACE_Lite_MMAP_Memory_Pool:

Inheritance graph
[legend]
Collaboration diagram for ACE_Lite_MMAP_Memory_Pool:

Collaboration graph
[legend]
List of all members.

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.


Detailed Description

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 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 300 of file MMAP_Memory_Pool.h.


Constructor & Destructor Documentation

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 546 of file MMAP_Memory_Pool.cpp.

References ACE_TCHAR, and ACE_TRACE.

00548   : ACE_MMAP_Memory_Pool (backing_store_name, options)
00549 {
00550   ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::ACE_Lite_MMAP_Memory_Pool");
00551 }

ACE_Lite_MMAP_Memory_Pool::~ACE_Lite_MMAP_Memory_Pool void   )  [virtual]
 

Destructor.

Definition at line 553 of file MMAP_Memory_Pool.cpp.

00554 {
00555 }


Member Function Documentation

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 572 of file MMAP_Memory_Pool.cpp.

References ACE_TRACE.

00573 {
00574   ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::sync");
00575   return 0;
00576 }

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 565 of file MMAP_Memory_Pool.cpp.

References ACE_TRACE.

00566 {
00567   ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::sync");
00568   return 0;
00569 }

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 558 of file MMAP_Memory_Pool.cpp.

References ACE_TRACE.

00559 {
00560   ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::sync");
00561   return 0;
00562 }


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 12:55:16 2008 for ACE by doxygen 1.3.6