| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/task_scheduler/task_scheduler_impl.h" | 5 #include "base/task_scheduler/task_scheduler_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 206 } |
| 207 | 207 |
| 208 for (const auto& thread : threads_posting_tasks) { | 208 for (const auto& thread : threads_posting_tasks) { |
| 209 thread->WaitForAllTasksToRun(); | 209 thread->WaitForAllTasksToRun(); |
| 210 thread->Join(); | 210 thread->Join(); |
| 211 } | 211 } |
| 212 | 212 |
| 213 scheduler->JoinForTesting(); | 213 scheduler->JoinForTesting(); |
| 214 } | 214 } |
| 215 | 215 |
| 216 // TODO(fdoray): Add tests with Sequences that move around thread pools once | 216 // TODO(fdoray): Add tests with Sequences that move around worker pools once |
| 217 // child TaskRunners are supported. | 217 // child TaskRunners are supported. |
| 218 | 218 |
| 219 } // namespace internal | 219 } // namespace internal |
| 220 } // namespace base | 220 } // namespace base |
| OLD | NEW |