#include <Shared_Memory_SV.h>
Inheritance diagram for ACE_Shared_Memory_SV:
Public Types | |
enum | { ACE_CREATE = IPC_CREAT, ACE_OPEN = 0 } |
Public Methods | |
ACE_Shared_Memory_SV (void) | |
ACE_Shared_Memory_SV (key_t id, int length, int create=ACE_Shared_Memory_SV::ACE_OPEN, int perms=ACE_DEFAULT_FILE_PERMS, void *addr=0, int flags=0) | |
int | open (key_t id, int length, int create=ACE_Shared_Memory_SV::ACE_OPEN, int perms=ACE_DEFAULT_FILE_PERMS, void *addr=0, int flags=0) |
virtual int | close (void) |
Close down the shared memory segment. | |
virtual int | remove (void) |
Remove the underlying shared memory segment. | |
virtual void * | malloc (size_t=0) |
Create a new chuck of memory containing <size> bytes. | |
virtual int | free (void *p) |
Free a chuck of memory allocated by <ACE_Shared_Memory_SV::malloc>. | |
virtual int | get_segment_size (void) const |
Return the size of the shared memory segment. | |
virtual ACE_HANDLE | get_id (void) const |
void | dump (void) const |
Dump the state of an object. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Private Attributes | |
ACE_SV_Shared_Memory | shared_memory_ |
This class provides a very simple-minded shared memory manager. For more a powerful memory allocator please see <ACE_Malloc>.
|
|
|
|
|
|
|
Close down the shared memory segment.
Implements ACE_Shared_Memory. |
|
Dump the state of an object.
|
|
Free a chuck of memory allocated by <ACE_Shared_Memory_SV::malloc>.
Implements ACE_Shared_Memory. |
|
Return the ID of the shared memory segment (i.e., a System V shared memory internal id). Implements ACE_Shared_Memory. |
|
Return the size of the shared memory segment.
Implements ACE_Shared_Memory. |
|
Create a new chuck of memory containing <size> bytes.
Implements ACE_Shared_Memory. |
|
|
|
Remove the underlying shared memory segment.
Implements ACE_Shared_Memory. |
|
Declare the dynamic allocation hooks.
|
|
This version is implemented with System V shared memory segments. |