Home
last modified time | relevance | path

Searched refs:TaskSourceExecutionMode (Results 1 – 23 of 23) sorted by relevance

/aosp_15_r20/external/cronet/base/task/thread_pool/
H A Dtest_task_factory.cc22 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 Dthread_pool_impl_unittest.cc71 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 Dtask_tracker.cc53 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 Dsequence_unittest.cc57 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 Dtask_tracker_unittest.cc587 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 Dtest_utils.cc111 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 Dthread_group_unittest.cc65 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 Dtask_source.h29 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 Dtest_utils.h125 TaskSourceExecutionMode execution_mode =
126 TaskSourceExecutionMode::kParallel);
132 TaskSourceExecutionMode execution_mode,
H A Dtest_task_factory.h47 TaskSourceExecutionMode execution_mode);
82 const TaskSourceExecutionMode execution_mode_;
H A Dsequence.cc335 TaskSourceExecutionMode execution_mode) in Sequence()
345 if (execution_mode() == TaskSourceExecutionMode::kSingleThread) { in GetExecutionEnvironment()
H A Dthread_group_semaphore_unittest.cc164 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 Dthread_group_impl_unittest.cc159 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 Dpooled_parallel_task_runner.cc31 traits_, nullptr, TaskSourceExecutionMode::kParallel); in PostDelayedTask()
H A Dworker_thread_waitable_event_unittest.cc195 nullptr, TaskSourceExecutionMode::kParallel); in GetWork()
505 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in GetWork()
911 nullptr, TaskSourceExecutionMode::kParallel); in TYPED_TEST()
H A Dpooled_sequenced_task_runner.cc20 TaskSourceExecutionMode::kSequenced)) { in PooledSequencedTaskRunner()
H A Dsequence.h89 TaskSourceExecutionMode execution_mode);
H A Dpooled_single_thread_task_runner_manager.cc438 TaskSourceExecutionMode::kParallel);
461 TaskSourceExecutionMode::kSingleThread)) { in PooledSingleThreadTaskRunner()
H A Ddelayed_priority_queue_unittest.cc32 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in MakeSequenceWithDelayedTask()
H A Dtask_source.cc66 TaskSourceExecutionMode execution_mode) in TaskSource()
H A Dpriority_queue_unittest.cc45 traits, nullptr, TaskSourceExecutionMode::kParallel); in MakeSequenceWithTraitsAndTask()
H A Djob_task_source.cc95 : TaskSource(traits, TaskSourceExecutionMode::kJob), in JobTaskSource()
H A Dthread_pool_impl.cc289 TaskSourceExecutionMode::kParallel)); in PostDelayedTask()