diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-09-12 22:41:01 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-09-12 22:41:01 +0000 |
commit | 4a4d4f0d33943c9f50c0d04fbcca2206eaaefcf7 (patch) | |
tree | 3a751692608cf09463aef1381fb444a9706877a8 /ace/Memory_Pool.cpp | |
parent | ade18e247821c137dd5c1aa93edb74b9b4ee2364 (diff) | |
download | ATCD-4a4d4f0d33943c9f50c0d04fbcca2206eaaefcf7.tar.gz |
ChangeLogTag:Thu Sep 12 17:38:10 2002 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'ace/Memory_Pool.cpp')
-rw-r--r-- | ace/Memory_Pool.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ace/Memory_Pool.cpp b/ace/Memory_Pool.cpp index 7ea365db648..32c53979feb 100644 --- a/ace/Memory_Pool.cpp +++ b/ace/Memory_Pool.cpp @@ -54,7 +54,7 @@ ACE_Local_Memory_Pool::acquire (size_t nbytes, } int -ACE_Local_Memory_Pool::release (void) +ACE_Local_Memory_Pool::release (int) { ACE_TRACE ("ACE_Local_Memory_Pool::release"); @@ -92,7 +92,7 @@ ACE_MMAP_Memory_Pool::dump (void) const } int -ACE_MMAP_Memory_Pool::release (void) +ACE_MMAP_Memory_Pool::release (int destroy) { ACE_TRACE ("ACE_MMAP_Memory_Pool::release"); @@ -100,7 +100,10 @@ ACE_MMAP_Memory_Pool::release (void) ACE_BASED_POINTER_REPOSITORY::instance ()->unbind (this->mmap_.addr ()); #endif /* ACE_HAS_POSITION_INDEPENDENT_POINTERS == 1 */ + if (destroy) this->mmap_.remove (); + else + this->mmap_.close (); return 0; } @@ -984,7 +987,7 @@ ACE_Shared_Memory_Pool::init_acquire (size_t nbytes, // Instruct the memory pool to release all of its resources. int -ACE_Shared_Memory_Pool::release (void) +ACE_Shared_Memory_Pool::release (int) { ACE_TRACE ("ACE_Shared_Memory_Pool::release"); @@ -1019,7 +1022,7 @@ ACE_Pagefile_Memory_Pool_Options::ACE_Pagefile_Memory_Pool_Options (void *base_a } int -ACE_Pagefile_Memory_Pool::release (void) +ACE_Pagefile_Memory_Pool::release (int) { return this->unmap (); } |