/aosp_15_r20/external/cronet/base/task/thread_pool/ |
H A 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()
|
H A 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 …]
|
H A D | task_tracker.cc | 53 static_cast<size_t>(TaskSourceExecutionMode::kMax) + 1, 77 TaskSourceExecutionMode mode) { in ExecutionModeToProto() 79 case TaskSourceExecutionMode::kParallel: in ExecutionModeToProto() 81 case TaskSourceExecutionMode::kSequenced: in ExecutionModeToProto() 83 case TaskSourceExecutionMode::kSingleThread: in ExecutionModeToProto() 85 case TaskSourceExecutionMode::kJob: in ExecutionModeToProto() 483 TaskSourceExecutionMode::kSingleThread); in RunTask() 505 DCHECK_EQ(TaskSourceExecutionMode::kSequenced, in RunTask() 510 DCHECK_EQ(TaskSourceExecutionMode::kSingleThread, in RunTask() 515 DCHECK_NE(TaskSourceExecutionMode::kSequenced, in RunTask() [all …]
|
H A 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 …]
|
H A D | task_tracker_unittest.cc | 587 TaskSourceExecutionMode execution_mode) { in RunTaskRunnerCurrentDefaultHandleVerificationTask() 619 TaskSourceExecutionMode::kParallel); in TEST_P() 644 std::move(test_task_runner), TaskSourceExecutionMode::kSequenced); in TEST_P() 672 std::move(test_task_runner), TaskSourceExecutionMode::kSingleThread); in TEST_P() 1011 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in TEST_F() 1039 TaskSourceExecutionMode::kParallel), in TEST_F() 1048 TaskSourceExecutionMode::kParallel), in TEST_F() 1057 TaskSourceExecutionMode::kParallel), in TEST_F() 1091 TaskSourceExecutionMode::kParallel)); in TEST_F() 1094 TaskSourceExecutionMode::kParallel)); in TEST_F() [all …]
|
H A D | test_utils.cc | 111 TaskSourceExecutionMode execution_mode) { in CreateSequenceWithTask() 121 TaskSourceExecutionMode execution_mode, in CreatePooledTaskRunnerWithExecutionMode() 125 case TaskSourceExecutionMode::kParallel: in CreatePooledTaskRunnerWithExecutionMode() 127 case TaskSourceExecutionMode::kSequenced: in CreatePooledTaskRunnerWithExecutionMode() 130 case TaskSourceExecutionMode::kJob: in CreatePooledTaskRunnerWithExecutionMode()
|
H A D | thread_group_unittest.cc | 65 TaskSourceExecutionMode execution_mode, in ThreadPostingTasks() 163 public testing::WithParamInterface<TaskSourceExecutionMode> { 171 TaskSourceExecutionMode execution_mode() const { return GetParam(); } in execution_mode() 243 if (execution_mode() == TaskSourceExecutionMode::kJob) in TEST_P() 865 ::testing::Values(TaskSourceExecutionMode::kParallel)); 869 ::testing::Values(TaskSourceExecutionMode::kSequenced)); 872 ::testing::Values(TaskSourceExecutionMode::kJob));
|
H A D | task_source.h | 29 enum class TaskSourceExecutionMode { enum 163 TaskSourceExecutionMode execution_mode); 221 TaskSourceExecutionMode execution_mode() const { return execution_mode_; } in execution_mode() 267 TaskSourceExecutionMode execution_mode_;
|
H A D | test_utils.h | 125 TaskSourceExecutionMode execution_mode = 126 TaskSourceExecutionMode::kParallel); 132 TaskSourceExecutionMode execution_mode,
|
H A D | test_task_factory.h | 47 TaskSourceExecutionMode execution_mode); 82 const TaskSourceExecutionMode execution_mode_;
|
H A D | sequence.cc | 335 TaskSourceExecutionMode execution_mode) in Sequence() 345 if (execution_mode() == TaskSourceExecutionMode::kSingleThread) { in GetExecutionEnvironment()
|
H A D | thread_group_semaphore_unittest.cc | 164 public testing::TestWithParam<TaskSourceExecutionMode> { 191 TaskSourceExecutionMode execution_mode) in ThreadPostingTasksWaitIdle() 414 ::testing::Values(TaskSourceExecutionMode::kParallel)); 418 ::testing::Values(TaskSourceExecutionMode::kSequenced)); 422 ::testing::Values(TaskSourceExecutionMode::kJob));
|
H A 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));
|
H A D | pooled_parallel_task_runner.cc | 31 traits_, nullptr, TaskSourceExecutionMode::kParallel); in PostDelayedTask()
|
H A D | worker_thread_waitable_event_unittest.cc | 195 nullptr, TaskSourceExecutionMode::kParallel); in GetWork() 505 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in GetWork() 911 nullptr, TaskSourceExecutionMode::kParallel); in TYPED_TEST()
|
H A D | pooled_sequenced_task_runner.cc | 20 TaskSourceExecutionMode::kSequenced)) { in PooledSequencedTaskRunner()
|
H A D | sequence.h | 89 TaskSourceExecutionMode execution_mode);
|
H A D | pooled_single_thread_task_runner_manager.cc | 438 TaskSourceExecutionMode::kParallel); 461 TaskSourceExecutionMode::kSingleThread)) { in PooledSingleThreadTaskRunner()
|
H A D | delayed_priority_queue_unittest.cc | 32 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in MakeSequenceWithDelayedTask()
|
H A D | task_source.cc | 66 TaskSourceExecutionMode execution_mode) in TaskSource()
|
H A D | priority_queue_unittest.cc | 45 traits, nullptr, TaskSourceExecutionMode::kParallel); in MakeSequenceWithTraitsAndTask()
|
H A D | job_task_source.cc | 95 : TaskSource(traits, TaskSourceExecutionMode::kJob), in JobTaskSource()
|
H A D | thread_pool_impl.cc | 289 TaskSourceExecutionMode::kParallel)); in PostDelayedTask()
|