forked from qt-creator/qt-creator
C++: Only start/stop timers from the UI thread.
Change-Id: Ib694d2aeaef3b62caf3d3624e6b1c3e643197c2d Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
@@ -76,9 +76,7 @@ QString StringTable::insert(const QString &string)
|
|||||||
|
|
||||||
void StringTable::scheduleGC()
|
void StringTable::scheduleGC()
|
||||||
{
|
{
|
||||||
QMutexLocker locker(&m_lock);
|
QMetaObject::invokeMethod(&m_gcCountDown, "start", Qt::QueuedConnection);
|
||||||
|
|
||||||
m_gcCountDown.start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void StringTable::startGC()
|
void StringTable::startGC()
|
||||||
|
Reference in New Issue
Block a user