Commit c5f16efa authored by Daniel Thor Kristjansson's avatar Daniel Thor Kristjansson Committed by Qt by Nokia
Browse files

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: default avatarThiago Macieira <thiago.macieira@intel.com>
parent fbcb4382
No related merge requests found
Showing with 1 addition and 1 deletion
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment