Mathew Sutcliffe
5035e7b5fb
refs #782 CAtomicFile on Windows: flush buffer before attempting to rename,
...
and use ReplaceFile to rename if target already exists.
2016-12-06 09:46:39 +01:00
Mathew Sutcliffe
f709d959d0
Minor adjustment in CAtomicFile.
2016-12-06 09:34:45 +01:00
Mathew Sutcliffe
1d22bd9acf
refs #782 Changes to CAtomicFile::replaceOriginal on Windows:
...
* Remember to supply canonical paths with native path separators to Win32 API calls.
* Supply the flag to MoveFileEx to wait for the move to really happen.
* Support long paths (more than 260 characters).
2016-12-06 09:34:29 +01:00
Mathew Sutcliffe
d9d16dc8e0
refs #782 Check permissions in CAtomicFile::open to get earlier indication of any problems.
2016-12-06 09:34:28 +01:00
Mathew Sutcliffe
0b07088639
refs #782 Extended error information when data cache fails to write.
2016-12-06 09:34:05 +01:00
Mathew Sutcliffe
b0dd2a76ff
CAtomicFile invariant: any method that closes the file must restore the original filename.
2016-07-31 23:17:47 +01:00
Roland Winklmeier
3d7a39ed00
Fix BlackMisc header includes
...
* Include only what is used
* Use forward declaration when possible
* Sorted includes
refs #630
2016-05-13 17:05:49 +02:00
Mathew Sutcliffe
a8fc899219
refs #624 Use std alias traits.
2016-03-22 16:02:48 +00:00
Mathew Sutcliffe
96d9fffcd7
refs #624 Use constexpr instead of Q_CONSTEXPR.
2016-03-19 20:40:03 +00:00
Mathew Sutcliffe
3175e640bb
refs #581 , #592 , #545 CAtomicFile can support ReadWrite mode by first copying the file.
2016-02-06 19:45:51 +00:00
Mathew Sutcliffe
ab2e5af8d6
refs #545 CAtomicFile::abandon() closes without renaming, and dtor abandons if it is called due to an exception being thrown.
2016-01-27 23:37:48 +00:00
Mathew Sutcliffe
f9de444a53
refs #545 CAtomicFile used in CValueCache to avoid corruption in case serialization is interrupted.
2016-01-27 23:37:48 +00:00