mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user