mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 00:45:46 +08:00
refs #783 Used BlackMisc::singleShot in CDataPageQueue::queueValuesFromCache, to tolerate the page owner moving thread.
This commit is contained in:
committed by
Klaus Basan
parent
b62d1c303c
commit
1e3afea9c2
@@ -217,7 +217,7 @@ namespace BlackMisc
|
|||||||
QMutexLocker lock(&m_mutex);
|
QMutexLocker lock(&m_mutex);
|
||||||
if (m_queue.isEmpty())
|
if (m_queue.isEmpty())
|
||||||
{
|
{
|
||||||
QTimer::singleShot(0, this, &CDataPageQueue::setQueuedValuesFromCache);
|
singleShot(0, this, [this] { setQueuedValuesFromCache(); });
|
||||||
}
|
}
|
||||||
m_queue.push_back(std::make_pair(values, changedBy));
|
m_queue.push_back(std::make_pair(values, changedBy));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user