Virtualize The Existence of a Scheduler Worker Thread

SchedulerWorkers are expected to always remain alive in
SchedulerWorkerPoolImpl. At the same time, we also want threads to sleep. This
change disconnects the SchedulerWorker's lifetime from the thread's
lifetime and allows the SchedulerWorkerPoolImpl to suggest when a worker can
detach the associated thread.

BUG=553459

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


CrOS-Libchrome-Original-Commit: 86b90282101ddae90c07065d3edb612b9f0a972b
6 files changed
tree: bd5dc21dd09ffbe11dc75675bcfb5817b4b8bd29
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/