diff options
author | Daniel Thor Kristjansson <danielk@cuymedia.net> | 2012-06-20 15:17:15 -0400 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-06-21 23:08:59 +0200 |
commit | c5f16efa34157cef1af3559f6bbd048ed609f8ad (patch) | |
tree | 580251210095a326793099c99b3c53bdbd51e0e6 /src/corelib/kernel/qcoreapplication_mac.cpp | |
parent | fbcb438226c141d4b4ab6ebeed96d23eba750956 (diff) |
Fixes high CPU usage on timer expiration when using glib event loop.
GTimerSource has 1ms accuracy, QTimerInfoList::timerWait() has 1us accuracy.
So when there is less than 1 ms left on the timer we enter a tight loop
checking for timer expiration since we don't round up the timerWait()
timer to the nearest millisecond.
Task-number: QTBUG-7618
Change-Id: I684c9236324f598bc69c6810be270aa47c791f91
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication_mac.cpp')
0 files changed, 0 insertions, 0 deletions