#include <Shared_Memory_MM.h>
Inheritance diagram for ACE_Shared_Memory_MM:


Public Methods | |
| ACE_Shared_Memory_MM (void) | |
| Default constructor. More... | |
| ACE_Shared_Memory_MM (ACE_HANDLE handle, int length=-1, int prot=PROT_RDWR, int share=ACE_MAP_PRIVATE, char *addr=0, off_t pos=0) | |
| Constructor. More... | |
| ACE_Shared_Memory_MM (const ACE_TCHAR *file_name, int len=-1, int flags=O_RDWR|O_CREAT, int mode=ACE_DEFAULT_FILE_PERMS, int prot=PROT_RDWR, int share=ACE_MAP_SHARED, char *addr=0, off_t pos=0) | |
| Constructor. More... | |
| int | open (ACE_HANDLE handle, int length=-1, int prot=PROT_RDWR, int share=ACE_MAP_PRIVATE, char *addr=0, off_t pos=0) |
| Open method. More... | |
| int | open (const ACE_TCHAR *file_name, int len=-1, int flags=O_RDWR|O_CREAT, int mode=ACE_DEFAULT_FILE_PERMS, int prot=PROT_RDWR, int share=ACE_MAP_SHARED, char *addr=0, off_t pos=0) |
| Open method. More... | |
| const ACE_TCHAR * | filename (void) const |
| Return the name of file that is mapped (if any). More... | |
| virtual int | close (void) |
| Close down the shared memory segment. More... | |
| virtual int | remove (void) |
| Remove the shared memory segment and the underlying file. More... | |
| virtual void * | malloc (size_t size=0) |
| Create a new chuck of memory containing <size> bytes. More... | |
| virtual int | free (void *p) |
| Free a chuck of memory allocated by <ACE_Shared_Memory_MM::malloc>. More... | |
| virtual int | get_segment_size (void) const |
| Return the size of the shared memory segment. More... | |
| virtual ACE_HANDLE | get_id (void) const |
| Return the ID of the shared memory segment (i.e., an ACE_HANDLE). More... | |
| void | dump (void) const |
| Dump the state of an object. More... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Private Attributes | |
| ACE_Mem_Map | shared_memory_ |
| This version is implemented with memory-mapped files. More... | |
This class provides a very simple-minded shared memory manager. For more a powerful memory allocator please see <ACE_Malloc>.
|
|
Default constructor.
|
|
||||||||||||||||||||||||||||
|
Constructor.
|
|
||||||||||||||||||||||||||||||||||||
|
Constructor.
|
|
|
Close down the shared memory segment.
Reimplemented from ACE_Shared_Memory. |
|
|
Dump the state of an object.
|
|
|
Return the name of file that is mapped (if any).
|
|
|
Free a chuck of memory allocated by <ACE_Shared_Memory_MM::malloc>.
Reimplemented from ACE_Shared_Memory. |
|
|
Return the ID of the shared memory segment (i.e., an ACE_HANDLE).
Reimplemented from ACE_Shared_Memory. |
|
|
Return the size of the shared memory segment.
Reimplemented from ACE_Shared_Memory. |
|
|
Create a new chuck of memory containing <size> bytes.
Reimplemented from ACE_Shared_Memory. |
|
||||||||||||||||||||||||||||||||||||
|
Open method.
|
|
||||||||||||||||||||||||||||
|
Open method.
|
|
|
Remove the shared memory segment and the underlying file.
Reimplemented from ACE_Shared_Memory. |
|
|
Declare the dynamic allocation hooks.
|
|
|
This version is implemented with memory-mapped files.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001