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()
|
||||
{
|
||||
QMutexLocker locker(&m_lock);
|
||||
|
||||
m_gcCountDown.start();
|
||||
QMetaObject::invokeMethod(&m_gcCountDown, "start", Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
void StringTable::startGC()
|
||||
|
Reference in New Issue
Block a user