refs #659, #657 Fixed mistake in synchronize() where a future would be broken prematurely if async load had not yet started after 1 second timeout.

This commit is contained in:
Mathew Sutcliffe
2016-06-05 19:19:19 +01:00
parent aefef81cd7
commit d53237cebc
2 changed files with 15 additions and 6 deletions

View File

@@ -106,7 +106,8 @@ namespace BlackMisc
void writeNewRevision(const QMap<QString, qint64> &timestamps);
//! Release the revision file lock and mark everything up-to-date (called by LockGuard destructor).
void finishUpdate();
//! \param keepPromises Don't break pending promises.
void finishUpdate(bool keepPromises = false);
//! True if beginUpdate found some values with timestamps newer than in memory.
bool isPendingRead() const;