TaskScheduler: 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

Review-Url: https://codereview.chromium.org/2412983003
Cr-Commit-Position: refs/heads/master@{#424908}


CrOS-Libchrome-Original-Commit: 08cf332fd47764c77a62fb6ebdeb88ff0ae17ede
1 file changed
tree: f04417644b52a83078e9762497e3201c6fcf1152
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/