Message97643
Added the FlushViewOfFile calls, and an msync call to the close method. Not sure how to explicitly test this, if it's possible. Current tests pass on Windows, I'll need to check *NIX when I have the access later today.
As for justification, from the UnmapViewOfFile docs[1]: "To minimize the risk of data loss in the event of a power failure or a system crash, applications should explicitly flush modified pages using the FlushViewOfFile function."
[1] http://msdn.microsoft.com/en-us/library/aa366882%28VS.85%29.aspx |
|
Date |
User |
Action |
Args |
2010-01-12 18:25:15 | brian.curtin | set | recipients:
+ brian.curtin, schmir, trent |
2010-01-12 18:25:15 | brian.curtin | set | messageid: <1263320715.57.0.303020232517.issue2643@psf.upfronthosting.co.za> |
2010-01-12 18:25:14 | brian.curtin | link | issue2643 messages |
2010-01-12 18:25:13 | brian.curtin | create | |
|