ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ACE_Shared_Memory Class Referenceabstract

This base class adapts both System V shared memory and "BSD" mmap to a common API. More...

#include <Shared_Memory.h>

Inheritance diagram for ACE_Shared_Memory:
Inheritance graph
[legend]

Public Member Functions

virtual ~ACE_Shared_Memory ()
 
virtual int close ()=0
 
virtual int remove ()=0
 
virtual voidmalloc (size_t=0)=0
 
virtual int free (void *p)=0
 
virtual size_t get_segment_size () const =0
 
virtual ACE_HANDLE get_id () const =0
 

Detailed Description

This base class adapts both System V shared memory and "BSD" mmap to a common API.

This is a very simple-minded wrapper, i.e., it really is only useful for allocating large contiguous chunks of shared memory. For a much more sophisticated version, please check out the ACE_Malloc class.

Constructor & Destructor Documentation

◆ ~ACE_Shared_Memory()

ACE_Shared_Memory::~ACE_Shared_Memory ( )
virtual

Member Function Documentation

◆ close()

virtual int ACE_Shared_Memory::close ( )
pure virtual

◆ free()

virtual int ACE_Shared_Memory::free ( void * p)
pure virtual

◆ get_id()

virtual ACE_HANDLE ACE_Shared_Memory::get_id ( ) const
pure virtual

◆ get_segment_size()

virtual size_t ACE_Shared_Memory::get_segment_size ( ) const
pure virtual

◆ malloc()

virtual void * ACE_Shared_Memory::malloc ( size_t = 0)
pure virtual

◆ remove()

virtual int ACE_Shared_Memory::remove ( )
pure virtual

The documentation for this class was generated from the following files: