diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-23 23:16:39 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-01-23 23:16:39 +0000 |
commit | b983862f8e9443fff2939eb6b629afe299837f75 (patch) | |
tree | 443b9d808e53debe85eb85cf78995d5fb45e8349 /ace/Shared_Memory_SV.h | |
parent | 1ba527bb358117826342453bfb69ea96a9a4ce03 (diff) | |
download | ATCD-b983862f8e9443fff2939eb6b629afe299837f75.tar.gz |
This commit was manufactured by cvs2svn to create tag 'poa_end'.poa_end
Diffstat (limited to 'ace/Shared_Memory_SV.h')
-rw-r--r-- | ace/Shared_Memory_SV.h | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/ace/Shared_Memory_SV.h b/ace/Shared_Memory_SV.h deleted file mode 100644 index d30f622b9f4..00000000000 --- a/ace/Shared_Memory_SV.h +++ /dev/null @@ -1,87 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// ace -// -// = FILENAME -// Shared_Memory_SV.h -// -// = AUTHOR -// Doug Schmidt -// -// ============================================================================ - -#if !defined (ACE_SHARED_MALLOC_SV_H) -#define ACE_SHARED_MALLOC_SV_H - -#include "ace/Shared_Memory.h" -#include "ace/SV_Shared_Memory.h" - -class ACE_Export ACE_Shared_Memory_SV : public ACE_Shared_Memory -{ - // = TITLE - // Shared memory wrapper based on System V shared memory. -public: - enum - { - ACE_CREATE = IPC_CREAT, - ACE_OPEN = 0 - }; - - // = Initialization and termination 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 shared memory segment and the underlying file. - - // = Allocation and deallocation methods. - 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; - // Return the ID of the shared memory segment (i.e., a System V - // shared memory internal id). - - void dump (void) const; - // Dump the state of an object. - - ACE_ALLOC_HOOK_DECLARE; - // Declare the dynamic allocation hooks. - -private: - ACE_SV_Shared_Memory shared_memory_; - // This version is implemented with System V shared memory - // segments. -}; - -#if defined (__ACE_INLINE__) -#include "ace/Shared_Memory_SV.i" -#endif /* __ACE_INLINE__ */ - -#endif /* ACE_SHARED_MALLOC_SV_H */ |