refs #581, #592 Make sure syncLoad checks if the next load would load the value, if it is not currently loading.

This commit is contained in:
Mathew Sutcliffe
2016-02-06 18:40:31 +00:00
parent 5a0db69415
commit a58dddfa19
3 changed files with 16 additions and 11 deletions

View File

@@ -229,6 +229,10 @@ namespace BlackMisc
//! \threadsafe
CVariant getValueSync(const QString &key) { return std::get<0>(getValue(key)); }
//! Synchronously return a current timestamp.
//! \threadsafe
qint64 getTimestampSync(const QString &key) { return std::get<1>(getValue(key)); }
private:
friend class Private::CValuePage;
struct Element;