diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-30 06:50:29 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-12-30 06:50:29 +0000 |
commit | a4a7690c336d4c8a16b3041c86d501ba38226e96 (patch) | |
tree | 9e9f93a98edd2591453f092d178ad29a1c5fb519 /ace/Shared_Memory_MM.h | |
parent | a5c4d8047ab58df5c45092e18ae503ad40518f0e (diff) | |
download | ATCD-a4a7690c336d4c8a16b3041c86d501ba38226e96.tar.gz |
This commit was manufactured by cvs2svn to create branchunlabeled-4.1.2
'unlabeled-4.1.2'.
Diffstat (limited to 'ace/Shared_Memory_MM.h')
-rw-r--r-- | ace/Shared_Memory_MM.h | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/ace/Shared_Memory_MM.h b/ace/Shared_Memory_MM.h deleted file mode 100644 index 5b1b96bffd0..00000000000 --- a/ace/Shared_Memory_MM.h +++ /dev/null @@ -1,95 +0,0 @@ -/* -*- C++ -*- */ -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// ace -// -// = FILENAME -// Shared_Memory_MM.h -// -// = AUTHOR -// Doug Schmidt -// -// ============================================================================ - -#if !defined (ACE_SHARED_MALLOC_MM_H) -#define ACE_SHARED_MALLOC_MM_H - -#include "ace/Shared_Memory.h" -#include "ace/Mem_Map.h" - -class ACE_Export ACE_Shared_Memory_MM : public ACE_Shared_Memory - // = TITLE - // Shared memory wrapper based on MMAP. -{ -public: - // = Initialization and termination methods. - ACE_Shared_Memory_MM (void); - ACE_Shared_Memory_MM (ACE_HANDLE handle, - int length = -1, - int prot = PROT_RDWR, - int share = MAP_PRIVATE, - char *addr = 0, - off_t pos = 0); - ACE_Shared_Memory_MM (LPTSTR file_name, - int len = -1, - int flags = O_RDWR | O_CREAT, - int mode = ACE_DEFAULT_FILE_PERMS, - int prot = PROT_RDWR, - int share = MAP_SHARED, - char *addr = 0, off_t pos = 0); - - int open (ACE_HANDLE handle, - int length = -1, - int prot = PROT_RDWR, - int share = MAP_PRIVATE, - char *addr = 0, - off_t pos = 0); - - int open (LPTSTR file_name, - int len = -1, - int flags = O_RDWR | O_CREAT, - int mode = ACE_DEFAULT_FILE_PERMS, - int prot = PROT_RDWR, - int share = MAP_SHARED, - char *addr = 0, - off_t pos = 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 size = 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_MM::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., an ACE_HANDLE). - - void dump (void) const; - // Dump the state of an object. - - ACE_ALLOC_HOOK_DECLARE; - // Declare the dynamic allocation hooks. - -private: - ACE_Mem_Map shared_memory_; - // This version is implemented with memory-mapped files. -}; - -#if defined (__ACE_INLINE__) -#include "ace/Shared_Memory_MM.i" -#endif /* __ACE_INLINE__ */ - -#endif /* ACE_SHARED_MALLOC_MM_H */ |