Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Lite_MMAP_Memory_Pool Class Reference

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

#include <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 Methods

 ACE_Lite_MMAP_Memory_Pool (const ACE_TCHAR *backing_store_name=0, const OPTIONS *options=0)
 Initialize the pool. More...

virtual ~ACE_Lite_MMAP_Memory_Pool (void)
 Destructor. More...

virtual int sync (ssize_t len=-1, int flags=MS_SYNC)
 Overwrite the default sync behavior with no-op. More...

virtual int sync (void *addr, size_t len, int flags=MS_SYNC)
 Overwrite the default sync behavior with no-op. More...


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 <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 629 of file 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 549 of file Memory_Pool.cpp.

References ACE_TCHAR, and ACE_TRACE.

00551   : ACE_MMAP_Memory_Pool (backing_store_name, options)
00552 {
00553   ACE_TRACE ("ACE_Lite_MMAP_Memory_Pool::ACE_Lite_MMAP_Memory_Pool");
00554 }

ACE_INLINE ACE_Lite_MMAP_Memory_Pool::~ACE_Lite_MMAP_Memory_Pool void    [virtual]
 

Destructor.

Definition at line 51 of file Memory_Pool.i.

00052 {
00053 }


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 564 of file Memory_Pool.cpp.

References ACE_TRACE.

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

int ACE_Lite_MMAP_Memory_Pool::sync ssize_t    len = -1,
int    flags = MS_SYNC
[virtual]
 

Overwrite the default sync behavior with no-op.

Reimplemented from ACE_MMAP_Memory_Pool.

Definition at line 557 of file Memory_Pool.cpp.

References ACE_TRACE, and ssize_t.

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


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:49:13 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002