/external/cronet/base/task/thread_pool/ |
D | test_task_factory.cc | 22 TaskSourceExecutionMode execution_mode) in TestTaskFactory() 56 if (execution_mode_ == TaskSourceExecutionMode::kSingleThread || in RunTaskCallback() 57 execution_mode_ == TaskSourceExecutionMode::kSequenced) { in RunTaskCallback() 65 case TaskSourceExecutionMode::kJob: in RunTaskCallback() 66 case TaskSourceExecutionMode::kParallel: in RunTaskCallback() 70 case TaskSourceExecutionMode::kSequenced: in RunTaskCallback() 75 case TaskSourceExecutionMode::kSingleThread: in RunTaskCallback() 91 if ((execution_mode_ == TaskSourceExecutionMode::kSingleThread || in RunTaskCallback() 92 execution_mode_ == TaskSourceExecutionMode::kSequenced) && in RunTaskCallback() 97 if (execution_mode_ == TaskSourceExecutionMode::kSingleThread) in RunTaskCallback()
|
D | thread_pool_impl_unittest.cc | 71 TaskSourceExecutionMode execution_mode) in TraitsExecutionModePair() 75 TaskSourceExecutionMode execution_mode; 178 TaskSourceExecutionMode execution_mode, in CreateTaskRunnerAndExecutionMode() 182 case TaskSourceExecutionMode::kParallel: in CreateTaskRunnerAndExecutionMode() 184 case TaskSourceExecutionMode::kSequenced: in CreateTaskRunnerAndExecutionMode() 186 case TaskSourceExecutionMode::kSingleThread: { in CreateTaskRunnerAndExecutionMode() 190 case TaskSourceExecutionMode::kJob: in CreateTaskRunnerAndExecutionMode() 204 TaskSourceExecutionMode execution_mode) in ThreadPostingTasks() 238 constexpr TaskSourceExecutionMode execution_modes[] = { in GetTraitsExecutionModePairs() 239 TaskSourceExecutionMode::kParallel, TaskSourceExecutionMode::kSequenced, in GetTraitsExecutionModePairs() [all …]
|
D | task_tracker.cc | 51 static_cast<size_t>(TaskSourceExecutionMode::kMax) + 1, 75 TaskSourceExecutionMode mode) { in ExecutionModeToProto() 77 case TaskSourceExecutionMode::kParallel: in ExecutionModeToProto() 79 case TaskSourceExecutionMode::kSequenced: in ExecutionModeToProto() 81 case TaskSourceExecutionMode::kSingleThread: in ExecutionModeToProto() 83 case TaskSourceExecutionMode::kJob: in ExecutionModeToProto() 470 case TaskSourceExecutionMode::kJob: in RunTask() 471 case TaskSourceExecutionMode::kParallel: in RunTask() 473 case TaskSourceExecutionMode::kSequenced: in RunTask() 478 case TaskSourceExecutionMode::kSingleThread: in RunTask()
|
D | sequence_unittest.cc | 57 TaskSourceExecutionMode::kParallel); in TEST() 146 TaskSourceExecutionMode::kParallel); in TEST() 182 TaskSourceExecutionMode::kParallel); in TEST() 213 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in TEST() 230 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in TEST() 252 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in TEST() 269 TaskSourceExecutionMode::kParallel); in TEST() 334 TaskSourceExecutionMode::kParallel); in TEST() 456 TaskSourceExecutionMode::kParallel); in TEST() 581 TaskSourceExecutionMode::kParallel); in TEST() [all …]
|
D | task_source.h | 29 enum class TaskSourceExecutionMode { enum 146 TaskSourceExecutionMode execution_mode); 210 TaskSourceExecutionMode execution_mode() const { return execution_mode_; } in execution_mode() 265 TaskSourceExecutionMode execution_mode_;
|
D | test_utils.cc | 108 TaskSourceExecutionMode execution_mode) { in CreateSequenceWithTask() 118 TaskSourceExecutionMode execution_mode, in CreatePooledTaskRunnerWithExecutionMode() 122 case TaskSourceExecutionMode::kParallel: in CreatePooledTaskRunnerWithExecutionMode() 124 case TaskSourceExecutionMode::kSequenced: in CreatePooledTaskRunnerWithExecutionMode() 127 case TaskSourceExecutionMode::kJob: in CreatePooledTaskRunnerWithExecutionMode()
|
D | task_tracker_unittest.cc | 544 TaskSourceExecutionMode execution_mode) { in RunTaskRunnerCurrentDefaultHandleVerificationTask() 576 TaskSourceExecutionMode::kParallel); in TEST_P() 601 std::move(test_task_runner), TaskSourceExecutionMode::kSequenced); in TEST_P() 629 std::move(test_task_runner), TaskSourceExecutionMode::kSingleThread); in TEST_P() 968 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in TEST_F() 996 TaskSourceExecutionMode::kParallel), in TEST_F() 1005 TaskSourceExecutionMode::kParallel), in TEST_F() 1014 TaskSourceExecutionMode::kParallel), in TEST_F() 1048 TaskSourceExecutionMode::kParallel)); in TEST_F() 1051 TaskSourceExecutionMode::kParallel)); in TEST_F() [all …]
|
D | test_utils.h | 128 TaskSourceExecutionMode execution_mode = 129 TaskSourceExecutionMode::kParallel); 135 TaskSourceExecutionMode execution_mode,
|
D | test_task_factory.h | 47 TaskSourceExecutionMode execution_mode); 82 const TaskSourceExecutionMode execution_mode_;
|
D | thread_group_unittest.cc | 65 TaskSourceExecutionMode execution_mode, in ThreadPostingTasks() 161 public testing::WithParamInterface<TaskSourceExecutionMode> { 169 TaskSourceExecutionMode execution_mode() const { return GetParam(); } in execution_mode() 241 if (execution_mode() == TaskSourceExecutionMode::kJob) in TEST_P() 863 ::testing::Values(TaskSourceExecutionMode::kParallel)); 867 ::testing::Values(TaskSourceExecutionMode::kSequenced)); 870 ::testing::Values(TaskSourceExecutionMode::kJob));
|
D | task_source.cc | 65 TaskSourceExecutionMode execution_mode) in TaskSource() 71 execution_mode_ == TaskSourceExecutionMode::kParallel || in TaskSource() 72 execution_mode_ == TaskSourceExecutionMode::kJob); in TaskSource()
|
D | pooled_parallel_task_runner.cc | 31 traits_, this, TaskSourceExecutionMode::kParallel); in PostDelayedTask()
|
D | pooled_sequenced_task_runner.cc | 20 TaskSourceExecutionMode::kSequenced)) { in PooledSequencedTaskRunner()
|
D | sequence.h | 89 TaskSourceExecutionMode execution_mode);
|
D | thread_group_impl_unittest.cc | 159 public testing::TestWithParam<TaskSourceExecutionMode> { 183 TaskSourceExecutionMode execution_mode) in ThreadPostingTasksWaitIdle() 411 ::testing::Values(TaskSourceExecutionMode::kParallel)); 415 ::testing::Values(TaskSourceExecutionMode::kSequenced)); 419 ::testing::Values(TaskSourceExecutionMode::kJob));
|
D | delayed_priority_queue_unittest.cc | 32 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in MakeSequenceWithDelayedTask()
|
D | worker_thread_unittest.cc | 198 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in GetWork() 481 nullptr, TaskSourceExecutionMode::kParallel); in GetWork() 810 nullptr, TaskSourceExecutionMode::kParallel); in TEST()
|
D | priority_queue_unittest.cc | 45 traits, nullptr, TaskSourceExecutionMode::kParallel); in MakeSequenceWithTraitsAndTask()
|
D | pooled_single_thread_task_runner_manager.cc | 403 TaskSourceExecutionMode::kParallel); 426 TaskSourceExecutionMode::kSingleThread)) { in PooledSingleThreadTaskRunner()
|
D | sequence.cc | 333 TaskSourceExecutionMode execution_mode) in Sequence()
|
D | job_task_source.cc | 95 : TaskSource(traits, nullptr, TaskSourceExecutionMode::kJob), in JobTaskSource()
|
D | thread_pool_impl.cc | 230 TaskSourceExecutionMode::kParallel)); in PostDelayedTask()
|