summaryrefslogtreecommitdiff
path: root/ace/Memory_Pool.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-07-07 05:42:03 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-07-07 05:42:03 +0000
commit663d502086dcfa5aab4e99db2f872592b53ed739 (patch)
treef3961ecb0a771c015bbca524252cf96b3725d9eb /ace/Memory_Pool.h
parente5431d0822351c2a394149fc781f50ddf94cf571 (diff)
downloadATCD-663d502086dcfa5aab4e99db2f872592b53ed739.tar.gz
ChangeLogTag:Wed Jul 7 00:37:22 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/Memory_Pool.h')
-rw-r--r--ace/Memory_Pool.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ace/Memory_Pool.h b/ace/Memory_Pool.h
index 0d14b34c2f1..be0f868afd0 100644
--- a/ace/Memory_Pool.h
+++ b/ace/Memory_Pool.h
@@ -114,7 +114,8 @@ public:
ACE_Shared_Memory_Pool_Options (char *base_addr = ACE_DEFAULT_BASE_ADDR,
size_t max_segments = ACE_DEFAULT_MAX_SEGMENTS,
size_t file_perms = ACE_DEFAULT_FILE_PERMS,
- off_t minimum_bytes = 0);
+ off_t minimum_bytes = 0,
+ size_t segment_size = ACE_DEFAULT_SEGMENT_SIZE);
char *base_addr_;
// Base address of the memory-mapped backing store.
@@ -127,6 +128,9 @@ public:
size_t file_perms_;
// File permissions to use when creating/opening a segment.
+
+ size_t segment_size_;
+ // Shared memory segment size.
};
class ACE_Export ACE_Shared_Memory_Pool : public ACE_Event_Handler
@@ -220,6 +224,9 @@ protected:
off_t minimum_bytes_;
// What the minimim bytes of the initial segment should be.
+ size_t segment_size_;
+ // Shared memory segment size.
+
key_t base_shm_key_;
// Base shared memory key for the segment.