fs: alternative fs::pending_file implementation (Win32)

Use MOVEFILE_WRITE_THROUGH instead of sync() on commit().
This commit is contained in:
Nekotekina 2021-06-20 14:45:33 +03:00
parent aaa20c0ff0
commit 3c614d95b8
3 changed files with 21 additions and 1 deletions

View file

@ -649,6 +649,8 @@ namespace fs
bool commit(bool overwrite = true);
pending_file(const std::string& path);
pending_file(const pending_file&) = delete;
pending_file& operator=(const pending_file&) = delete;
~pending_file();
private: