Commit ae970040 authored by Jocelyn Turcotte's avatar Jocelyn Turcotte
Browse files

Avoid duplicating timers in MessagePumpForUIQt


Since DoDelayedWork always returns the time of the next delayed work
to process, we would create a new timer for the same event every
time we process an event. This would cause a timer starvation on
Windows for example.

Instead of blindly creating timers, keep track of the requested delay
and create a new timer only if the new delay is shorted than the
currently scheduled one.

Change-Id: I2606231f0a48b8feb85f058a78eb772d26b222f3
Reviewed-by: default avatarAndras Becsi <andras.becsi@digia.com>
parent fd5bba61
Showing with 19 additions and 7 deletions
Supports Markdown
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