refs #783 Used BlackMisc::singleShot in CDataPageQueue::queueValuesFromCache, to tolerate the page owner moving thread.

This commit is contained in:
Mathew Sutcliffe
2016-10-19 22:09:12 +01:00
committed by Klaus Basan
parent b62d1c303c
commit 1e3afea9c2

View File

@@ -217,7 +217,7 @@ namespace BlackMisc
QMutexLocker lock(&m_mutex);
if (m_queue.isEmpty())
{
QTimer::singleShot(0, this, &CDataPageQueue::setQueuedValuesFromCache);
singleShot(0, this, [this] { setQueuedValuesFromCache(); });
}
m_queue.push_back(std::make_pair(values, changedBy));
}