DescriptionTaskScheduler: Pop a Task from its Sequence from SchedulerWorkerThread.
Previously, we planned to pop a Task from its Sequence inside the
RanTaskFromSequence() method of SchedulerWorkerThread::Delegate. This
method would also have pushed the Sequence to the appropriate
PriorityQueue if it wasn't empty after the pop.
We now believe that it is more natural to pop the Task from its Sequence
from SchedulerWorkerThread, right after it runs. If the Sequence isn't
empty after the pop, SchedulerWorkerThread will call
SchedulerWorkerThread::Delegate::EnqueueSequence(). It won't notify its
delegate if the Sequence is empty after the pop.
BUG=553459
Committed: https://crrev.com/d314e56ae71bfb19fa9d1745055936cc870652e1
Cr-Commit-Position: refs/heads/master@{#386171}
Patch Set 1 #
Total comments: 6
Patch Set 2 : CR gab #4 #
Total comments: 11
Patch Set 3 : CR robliao #6 (improve comments) #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 18 (6 generated)
|