Prevent redundant DoWorks due to canceled delayed tasks
To achieve this we make a few changes: 1. We only register the next wakeup with the TimeDomain, rather than all of them. 2. MoveReadyDelayedTasksToDelayedWorkQueue now registers the next wakeup (if any). Since it removes all canceled delayed tasks from the front of the priority queue this has the effect of not scheduling wakeups for cancelled tasks. 3. Tweaking the TaskQueueManager level delayed DoWork de-duplication logic to only post a delayed DoWork if the task is meant to run before any previously registered delayed DoWorks. BUG=638542, 605718 Review-Url: https://codereview.chromium.org/2320403003 Cr-Commit-Position: refs/heads/master@{#418556}
Showing
Please register or sign in to comment