Opened 5 years ago

Closed 5 years ago

#8595 closed Bugs (fixed)

mapped_region::flush - invalid interpretation of async parameter (win32)

Reported by: voropaev_sg@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.53.0 Severity: Problem
Keywords: flush async Cc:


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

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by Ion Gaztañaga

Thanks for the report, just in time for Boost 1.54

comment:2 Changed 5 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

(In [84390]) Fixes #8595

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.