SchedulerWorkerPoolImpl could stand to some simplification:
1) At a few times, the priority queue lock and SchedulerWorkerPoolImpl lock are acquired at the same time. Maybe they should be merged?
2) The Service Thread is a MessageLoop thread so it was easy to get Async IO support. This seems strange with MessageLoop redirection to the task scheduler (and thus impacts capacity monitoring). Maybe the Service Thread should have a custom loop instead. (This has a side benefit of better coalescing and better delayed task handling)
Comment 1 by bugdroid1@chromium.org
, Feb 22 2018