Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73093 - sandbox/mmap/boost/mmap
From: dsaritz_at_[hidden]
Date: 2011-07-14 04:11:22


Author: psiha
Date: 2011-07-14 04:11:19 EDT (Thu, 14 Jul 2011)
New Revision: 73093
URL: http://svn.boost.org/trac/boost/changeset/73093

Log:
Minor refactoring.
Text files modified:
   sandbox/mmap/boost/mmap/memory_mapping.cpp | 6 +-----
   1 files changed, 1 insertions(+), 5 deletions(-)

Modified: sandbox/mmap/boost/mmap/memory_mapping.cpp
==============================================================================
--- sandbox/mmap/boost/mmap/memory_mapping.cpp (original)
+++ sandbox/mmap/boost/mmap/memory_mapping.cpp 2011-07-14 04:11:19 EDT (Thu, 14 Jul 2011)
@@ -404,17 +404,13 @@
     return basic_mapped_view::map
     (
         file_handle.handle(),
- // Implementation note:
- // Windows APIs interpret zero as 'whole file' but we still need to
- // query the file size in order to be able properly set the end pointer.
- // (13.07.2011.) (Domagoj Saric)
         mapping_flags::create
         (
             mapping_flags::handle_access_rights::read | mapping_flags::handle_access_rights::write,
             mapping_flags::share_mode::shared,
             mapping_flags::system_hint::uninitialized
         ),
- get_file_size( file_handle.handle() ),
+ desired_size,
         0
     );
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk