diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-12-23 15:41:09 +1000 |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-12-23 15:41:09 +1000 |
commit | eb395badcba6eada75ad5e6a72b74f5204170ed9 (patch) | |
tree | c4f6d46e5a0698b60bec96eb0106b04677035cf6 /src/declarative/qml/qdeclarativeworkerscript.cpp | |
parent | 93edc0680b8ca9cccefa31f8d2df08b0fc8f32f8 (diff) | |
download | qt4-tools-eb395badcba6eada75ad5e6a72b74f5204170ed9.tar.gz |
WorkerScript could starve image loading of CPU.
We use idle priority for image loading and XmlListModel in order to
keep the UI responsive, but WorkerScript used LowPriority which would
significantly reduce CPU available for image loading.
Task-number: QTBUG-16167
Diffstat (limited to 'src/declarative/qml/qdeclarativeworkerscript.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativeworkerscript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeworkerscript.cpp b/src/declarative/qml/qdeclarativeworkerscript.cpp index 4b78020d6b..9dc214f754 100644 --- a/src/declarative/qml/qdeclarativeworkerscript.cpp +++ b/src/declarative/qml/qdeclarativeworkerscript.cpp @@ -458,7 +458,7 @@ QDeclarativeWorkerScriptEngine::QDeclarativeWorkerScriptEngine(QDeclarativeEngin { d->m_lock.lock(); connect(d, SIGNAL(stopThread()), this, SLOT(quit()), Qt::DirectConnection); - start(QThread::LowPriority); + start(QThread::IdlePriority); d->m_wait.wait(&d->m_lock); d->moveToThread(this); d->m_lock.unlock(); |