diff options
author | mread <qt-info@nokia.com> | 2010-04-22 14:51:05 (GMT) |
---|---|---|
committer | mread <qt-info@nokia.com> | 2010-04-22 14:56:20 (GMT) |
commit | 99dbc23113eaf40f4e311eb0f21092e54676bd10 (patch) | |
tree | 9256984055b26db99519d14f6333071cebd3ef3b /util | |
parent | 144f3bade4d5f48ebc268dae0df26ddf7dfe1228 (diff) | |
download | Qt-99dbc23113eaf40f4e311eb0f21092e54676bd10.zip Qt-99dbc23113eaf40f4e311eb0f21092e54676bd10.tar.gz Qt-99dbc23113eaf40f4e311eb0f21092e54676bd10.tar.bz2 |
Event dispatcher slow down using delays rather than thread priority
The Symbian event dispatcher has a mechanism to slow down the Qt app
to prevent viewsrv crashes and keep the device responsive. This was
implemented using a thread priority drop. But that has some bad side
effects, such as app and system performance instability.
This new implementation of a slow down mechanism uses a separate low
priority thread to test when the system is getting too busy. Adaptive
millisecond waits are used to slow the app down just enough to let the
low prioirity thread to run.
In practice this avoids the performance instability of the previous
method, and results in much better system stability where the system
stays more responsive with fewer viewsrv panics when heavy Qt apps are
running.
The slow down code kicks in after 2 seconds of busy time. The delays
grow 1ms at a time to a maximum of 1/4 of average event run time.
Task-number: QTBUG-9489
Reviewed-by: Shane Kearns
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions