diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-04-25 05:45:29 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-04-25 05:45:29 +0000 |
commit | 2a86d1d9de55aa52d35724af2e5a36ebe4572c0b (patch) | |
tree | 0a2fc5331b33587b143a712dc9f5d75553c3a2d1 /ace/Shared_Memory_MM.h | |
parent | 043a67bf38b04a8b8df4b160d6e80d4fdca778c8 (diff) | |
download | ATCD-2a86d1d9de55aa52d35724af2e5a36ebe4572c0b.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Shared_Memory_MM.h')
-rw-r--r-- | ace/Shared_Memory_MM.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ace/Shared_Memory_MM.h b/ace/Shared_Memory_MM.h index 5b1b96bffd0..daa54737036 100644 --- a/ace/Shared_Memory_MM.h +++ b/ace/Shared_Memory_MM.h @@ -28,12 +28,16 @@ class ACE_Export ACE_Shared_Memory_MM : public ACE_Shared_Memory public: // = Initialization and termination methods. ACE_Shared_Memory_MM (void); + // Default constructor. + 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); + // Constructor. + ACE_Shared_Memory_MM (LPTSTR file_name, int len = -1, int flags = O_RDWR | O_CREAT, @@ -41,6 +45,7 @@ public: int prot = PROT_RDWR, int share = MAP_SHARED, char *addr = 0, off_t pos = 0); + // Constructor. int open (ACE_HANDLE handle, int length = -1, @@ -48,6 +53,7 @@ public: int share = MAP_PRIVATE, char *addr = 0, off_t pos = 0); + // Open method. int open (LPTSTR file_name, int len = -1, @@ -57,6 +63,10 @@ public: int share = MAP_SHARED, char *addr = 0, off_t pos = 0); + // Open method. + + const TCHAR *filename (void) const; + // Return the name of file that is mapped (if any). virtual int close (void); // Close down the shared memory segment. @@ -69,7 +79,8 @@ public: // 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>. + // 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. |