refs #536 Moved CDataCache serialization into a worker thread.

This commit is contained in:
Mathew Sutcliffe
2015-12-06 19:25:12 +00:00
parent e266ccefad
commit 366030f2a9
4 changed files with 93 additions and 27 deletions

View File

@@ -162,10 +162,12 @@ namespace BlackMisc
protected:
//! Save specific values to Json files in a given directory.
//! \threadsafe
CStatusMessage saveToFiles(const QString &directory, const CVariantMap &values) const;
//! Load from Json files in a given directory any values which differ from the current ones, and insert them in o_values.
CStatusMessage loadFromFiles(const QString &directory, CValueCachePacket &o_values) const;
//! \threadsafe
CStatusMessage loadFromFiles(const QString &directory, const CVariantMap &current, CValueCachePacket &o_values) const;
//! Mutex protecting operations which are critical on m_elements.
mutable QMutex m_mutex { QMutex::Recursive };