refs #614, moved cache to vPilot reader

This commit is contained in:
Klaus Basan
2016-03-29 09:28:46 +02:00
parent 01d4faa20f
commit a1d6492ff2
4 changed files with 72 additions and 30 deletions

View File

@@ -303,6 +303,9 @@ namespace BlackMisc
//! Write and save in the same step. Must be called from the thread in which the owner lives.
CStatusMessage setAndSave(const T &value, qint64 timestamp = 0) { return m_page.setValue(m_element, CVariant::from(value), timestamp, true); }
//! Is current thread the owner thread, so CCached::set is safe
bool isOwnerThread() const { return QThread::currentThread() == m_page.thread(); }
//! Get the key string of this value.
const QString &getKey() const { return m_page.getKey(m_element); }