summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qeventdispatcher_symbian.cpp
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@sosco.com>2009-10-12 13:29:31 (GMT)
committerShane Kearns <shane.kearns@sosco.com>2009-10-12 17:31:49 (GMT)
commit912e8c4ae4f2630a49653c375ac63a71e21e0dd3 (patch)
treeeb25369f8256156aba8994f2e53e6a3b041917ee /src/corelib/kernel/qeventdispatcher_symbian.cpp
parent2b031abea42dbb56bff6a4d3db68f7b7c5058c12 (diff)
downloadQt-912e8c4ae4f2630a49653c375ac63a71e21e0dd3.zip
Qt-912e8c4ae4f2630a49653c375ac63a71e21e0dd3.tar.gz
Qt-912e8c4ae4f2630a49653c375ac63a71e21e0dd3.tar.bz2
Fix for poor performance during screen orientation switch
Processing the relayout takes longer than 100ms. Setting priority to low makes the app wait until all other apps have been processed before it gets scheduled again (over 3 seconds). By setting priority to background, the app is round-robin scheduled with the other apps (in 20ms timeslices) Task-number: QT-1030 Reviewed-by: axis
Diffstat (limited to 'src/corelib/kernel/qeventdispatcher_symbian.cpp')
-rw-r--r--src/corelib/kernel/qeventdispatcher_symbian.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_symbian.cpp b/src/corelib/kernel/qeventdispatcher_symbian.cpp
index acbb7e4..02f77a1 100644
--- a/src/corelib/kernel/qeventdispatcher_symbian.cpp
+++ b/src/corelib/kernel/qeventdispatcher_symbian.cpp
@@ -749,11 +749,11 @@ bool QEventDispatcherSymbian::processEvents ( QEventLoop::ProcessEventsFlags fla
block = false;
if (timeState == TimeStarted && time.elapsed() > 100) {
priority = m_processHandle.Priority();
- m_processHandle.SetPriority(EPriorityLow);
+ m_processHandle.SetPriority(EPriorityBackground);
time.start();
// Slight chance of race condition in the next lines, but nothing fatal
// will happen, just wrong priority.
- if (m_processHandle.Priority() == EPriorityLow) {
+ if (m_processHandle.Priority() == EPriorityBackground) {
m_processHandle.SetPriority(priority);
}
}