DescriptionTaskScheduler: Put an ALIVE SchedulerWorker on top of the idle stack.
Before this CL, the initial state of the worker on top of the idle
stack was DETACHED while the initial state of the worker at the bottom
of the idle stack was ALIVE. The first task posted to the worker pool
woke up the DETACHED worker on top of the idle stack. When few tasks
were posted, the ALIVE worker at the bottom of the idle stack detached
without running a single task.
This CL makes the worker on top of the idle stack ALIVE and the worker
at the bottom of the idle stack DETACHED.
BUG=553459
Committed: https://crrev.com/08cf332fd47764c77a62fb6ebdeb88ff0ae17ede
Cr-Commit-Position: refs/heads/master@{#424908}
Patch Set 1 #Patch Set 2 : self-review #
Total comments: 2
Patch Set 3 : CR robliao #3 #Messages
Total messages: 16 (7 generated)
|