DescriptionUse TaskScheduler instead of WorkerPool in v8_platform.cc.
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.
MayBlock():
The task may block.
BUG=659191
Review-Url: https://codereview.chromium.org/2610473002
Cr-Commit-Position: refs/heads/master@{#449976}
Committed: https://chromium.googlesource.com/chromium/src/+/b83be4ca0e00b50b17619adf7f7de275455e9852
Patch Set 1 #Patch Set 2 : Add ScopedAsyncTaskScheduler in RenderViewTest #Patch Set 3 : Add ScopedAsyncTaskScheduler in APIBindingTest #Patch Set 4 : Add dependency #Patch Set 5 : Add ScopedAsyncTaskSchedulers #Patch Set 6 : add dependency #Patch Set 7 : fix test errors #Patch Set 8 : fix test errors #Patch Set 9 : BLOCK_SHUTDOWN #Patch Set 10 : CONTINUE_ON_SHUTDOWN #Patch Set 11 : Fix gin_unittests #Patch Set 12 : JsToCppTests #Patch Set 13 : Blink test environment #
Total comments: 2
Patch Set 14 : NumberOfAvailableBackgroundThreads #Patch Set 15 : rebase #Patch Set 16 : mayblock #Patch Set 17 : no MayBlock #Patch Set 18 : rebase #
Messages
Total messages: 87 (67 generated)
|