 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2622633004:
    Add base::test::ScopedAsyncTaskScheduler.  (Closed)
    
  
    Issue 
            2622633004:
    Add base::test::ScopedAsyncTaskScheduler.  (Closed) 
  | DescriptionAdd base::test::ScopedAsyncTaskScheduler.
base::test::ScopedAsyncTaskScheduler allows usage of the
base/task_scheduler/post_task.h API within its scope. Tasks run
asynchronously, one at a time.
This is required to allow the migration of v8 from WorkerPool to
TaskScheduler. Currently, v8 posts tasks to WorkerPool and waits
until they run using a v8::base::Semaphore. Posting these tasks to
a synchronous TaskScheduler would result in a deadlock (tasks can't
run because the main thread is waiting on a semaphore, the wait
cannot end unless tasks run). Posting these tasks to an
asynchronous TaskScheduler would work as desired.
BUG=553459
Review-Url: https://codereview.chromium.org/2622633004
Cr-Commit-Position: refs/heads/master@{#442364}
Committed: https://chromium.googlesource.com/chromium/src/+/83519fc19e33362d2221fb2767e1eff7649eef84
   Patch Set 1 #Patch Set 2 : self-review #
      Total comments: 5
      
     Patch Set 3 : Cr gab #5 #
      Total comments: 2
      
     Patch Set 4 : CR gab #11 (grammar) #
 Dependent Patchsets: Messages
    Total messages: 18 (10 generated)
     | |||||||||||||||||||||||||||||||||||||