#include <Memory_Pool.h>
Public Methods | |
| ACE_Shared_Memory_Pool_Options (const 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, size_t segment_size=ACE_DEFAULT_SEGMENT_SIZE) | |
| Initialization method. More... | |
Public Attributes | |
| const char * | base_addr_ |
| Base address of the memory-mapped backing store. More... | |
| size_t | max_segments_ |
| Number of shared memory segments to allocate. More... | |
| off_t | minimum_bytes_ |
| What the minimum bytes of the initial segment should be. More... | |
| size_t | file_perms_ |
| File permissions to use when creating/opening a segment. More... | |
| size_t | segment_size_ |
| Shared memory segment size. More... | |
This should be a nested class, but that breaks too many compilers.
Definition at line 124 of file Memory_Pool.h.
|
||||||||||||||||||||||||
|
Initialization method.
Definition at line 610 of file Memory_Pool.cpp. References ACE_TRACE, and base_addr_.
00615 : base_addr_ (base_addr), 00616 max_segments_ (max_segments), 00617 minimum_bytes_ (minimum_bytes), 00618 file_perms_ (file_perms), 00619 segment_size_ (segment_size) 00620 { 00621 ACE_TRACE ("ACE_Shared_Memory_Pool_Options::ACE_Shared_Memory_Pool_Options"); 00622 // HP-UX 11, 64-bit bug workaround 00623 #if defined (__hpux) && defined (__LP64__) 00624 long temp = ACE_DEFAULT_BASE_ADDRL; 00625 base_addr_ = (char *) temp; 00626 #endif /* defined (__hpux) && defined (__LP64__) */ 00627 } |
|
|
Base address of the memory-mapped backing store.
Definition at line 135 of file Memory_Pool.h. Referenced by ACE_Shared_Memory_Pool_Options. |
|
|
File permissions to use when creating/opening a segment.
Definition at line 144 of file Memory_Pool.h. |
|
|
Number of shared memory segments to allocate.
Definition at line 138 of file Memory_Pool.h. |
|
|
What the minimum bytes of the initial segment should be.
Definition at line 141 of file Memory_Pool.h. |
|
|
Shared memory segment size.
Definition at line 147 of file Memory_Pool.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002