X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/acdad9dbd300b127bf49840aa89c228f147d6461..5f2b0d8586a40d799fcdd7a27bac652bde6f7a2b:/interface/wx/file.h diff --git a/interface/wx/file.h b/interface/wx/file.h index 30269c2e53..10efe6534d 100644 --- a/interface/wx/file.h +++ b/interface/wx/file.h @@ -129,6 +129,18 @@ public: */ void Discard(); + /** + Flush the data written to the file to disk. + + This simply calls wxFile::Flush() for the underlying file and may be + necessary with file systems such as XFS and Ext4 under Linux. Calling + this function may however have serious performance implications and + also is not necessary with many other file systems so it is not done by + default -- but you can call it before calling Commit() to absolutely + ensure that the data was indeed written to the disk correctly. + */ + bool Flush(); + /** Returns @true if the file was successfully opened. */