Home
last modified time | relevance | path

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

/external/cronet/base/task/thread_pool/
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()
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 …]
Dtask_tracker.cc51 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()
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 …]
Dtask_source.h29 enum class TaskSourceExecutionMode { enum
146 TaskSourceExecutionMode execution_mode);
210 TaskSourceExecutionMode execution_mode() const { return execution_mode_; } in execution_mode()
265 TaskSourceExecutionMode execution_mode_;
Dtest_utils.cc108 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()
Dtask_tracker_unittest.cc544 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 …]
Dtest_utils.h128 TaskSourceExecutionMode execution_mode =
129 TaskSourceExecutionMode::kParallel);
135 TaskSourceExecutionMode execution_mode,
Dtest_task_factory.h47 TaskSourceExecutionMode execution_mode);
82 const TaskSourceExecutionMode execution_mode_;
Dthread_group_unittest.cc65 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));
Dtask_source.cc65 TaskSourceExecutionMode execution_mode) in TaskSource()
71 execution_mode_ == TaskSourceExecutionMode::kParallel || in TaskSource()
72 execution_mode_ == TaskSourceExecutionMode::kJob); in TaskSource()
Dpooled_parallel_task_runner.cc31 traits_, this, TaskSourceExecutionMode::kParallel); in PostDelayedTask()
Dpooled_sequenced_task_runner.cc20 TaskSourceExecutionMode::kSequenced)) { in PooledSequencedTaskRunner()
Dsequence.h89 TaskSourceExecutionMode execution_mode);
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));
Ddelayed_priority_queue_unittest.cc32 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in MakeSequenceWithDelayedTask()
Dworker_thread_unittest.cc198 TaskTraits(), nullptr, TaskSourceExecutionMode::kParallel); in GetWork()
481 nullptr, TaskSourceExecutionMode::kParallel); in GetWork()
810 nullptr, TaskSourceExecutionMode::kParallel); in TEST()
Dpriority_queue_unittest.cc45 traits, nullptr, TaskSourceExecutionMode::kParallel); in MakeSequenceWithTraitsAndTask()
Dpooled_single_thread_task_runner_manager.cc403 TaskSourceExecutionMode::kParallel);
426 TaskSourceExecutionMode::kSingleThread)) { in PooledSingleThreadTaskRunner()
Dsequence.cc333 TaskSourceExecutionMode execution_mode) in Sequence()
Djob_task_source.cc95 : TaskSource(traits, nullptr, TaskSourceExecutionMode::kJob), in JobTaskSource()
Dthread_pool_impl.cc230 TaskSourceExecutionMode::kParallel)); in PostDelayedTask()