summaryrefslogtreecommitdiff
path: root/ace/Mem_Map.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-23 14:14:29 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-23 14:14:29 +0000
commit051505284466d79c4720643d099df71308c2c861 (patch)
tree218aac1a0f5c40aa4efadcb721d53b97bb3e47b2 /ace/Mem_Map.cpp
parent094468290b8fe73fc65ef44f0528080ba3a5f8fe (diff)
downloadATCD-051505284466d79c4720643d099df71308c2c861.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Mem_Map.cpp')
-rw-r--r--ace/Mem_Map.cpp16
1 files changed, 1 insertions, 15 deletions
diff --git a/ace/Mem_Map.cpp b/ace/Mem_Map.cpp
index 64d514ef240..e412eb956fd 100644
--- a/ace/Mem_Map.cpp
+++ b/ace/Mem_Map.cpp
@@ -37,18 +37,6 @@ ACE_Mem_Map::close (void)
return this->close_handle ();
}
-int
-ACE_Mem_Map::close_handle (void)
-{
- if (this->close_handle_)
- {
- this->close_handle_ = 0;
- return ACE_OS::close (this->handle_);
- }
- else
- return 0;
-}
-
ACE_Mem_Map::~ACE_Mem_Map (void)
{
ACE_TRACE ("ACE_Mem_Map::~ACE_Mem_Map");
@@ -83,9 +71,7 @@ ACE_Mem_Map::map_it (ACE_HANDLE handle,
// the file then we force a complete new remapping by setting
// the descriptor to ACE_INVALID_HANDLE (closing down the
// descriptor if necessary).
- if (this->file_mapping_ != this->handle_)
- ACE_OS::close (this->file_mapping_);
- this->file_mapping_ = ACE_INVALID_HANDLE;
+ this->close_filemapping_handle ();
}
// At this point we know <file_len> is not negative...