0

How to know that a mapped_file_sink has been flushed to the disk? There are not any function provided by boost for the same purpose.

I am writing to the mapped_file_sink and i need to move this file when it has been written to the disk.

david
  • 321
  • 3
  • 12
  • Close the mapped file and move. – sehe May 01 '18 at 09:31
  • @sehe, boost memory map does not work this way. even if you close the mapped file it does not sync it to the disk on close. it just unmaps the memory map and then OS takes over to flush to the disk when it gets chance to do that. process needs to wait before doing anything with the file on disk. – david May 02 '18 at 11:15

0 Answers0