Chromium Code Reviews
DescriptionUse TaskScheduler instead of WorkerPool in BackgroundTaskRunner.cpp
This CL replaces base::WorkerPool::PostTask() with
base::PostTaskWithTraits(). The following traits are used:
Priority: Inherited (default)
The priority is inherited from the calling context (i.e. TaskTraits
are initialized with the priority of the current task).
Shutdown behavior: CONTINUE_ON_SHUTDOWN
Tasks posted with this mode which have not started executing before
shutdown is initiated will never run. Tasks with this mode running at
shutdown will be ignored (the worker will not be joined).
Note: Tasks that were previously posted to base::WorkerPool should
use this shutdown behavior because this is how base::WorkerPool
handles all its tasks.
*No* May Block (default):
Tasks may no block on synchronous file I/O operations or on sync
primitives.
BUG=659191
Review-Url: https://codereview.chromium.org/2685673005
Cr-Commit-Position: refs/heads/master@{#449633}
Committed: https://chromium.googlesource.com/chromium/src/+/99e56574537a8cf27af4c86f34e42fcad65e21c8
Patch Set 1 #
Messages
Total messages: 17 (10 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||