Subject: [Boost-bugs] [Boost C++ Libraries] #8595: mapped_region::flush - invalid interpretation of async parameter (win32)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-20 09:15:13
#8595: mapped_region::flush - invalid interpretation of async parameter (win32)
---------------------------------------+------------------------------------
Reporter: voropaev_sg@⦠| Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
Version: Boost 1.53.0 | Severity: Problem
Keywords: flush async |
---------------------------------------+------------------------------------
We had serious performance problem after transfer to boost version 1.53.
The reason - bug in processing of "async" parameter of
'''mapped_region::flush''' (windows version).
{{{
else if(async && m_file_or_mapping_hnd != winapi::invalid_handle_value
&&
winapi::get_file_type(m_file_or_mapping_hnd) ==
winapi::file_type_disk)
{
return winapi::flush_file_buffers(m_file_or_mapping_hnd);
}
}}}
So if '''async = true''' then '''flush''' function works in synchronous
mode. I think the code must be:
{{{
else if(!async && ....
}}}
Sergey Voropaev
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8595> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC