Home
last modified time | relevance | path

Searched refs:JobDelegate (Results 1 – 13 of 13) sorted by relevance

/external/cronet/base/task/
Dpost_job.h28 class BASE_EXPORT JobDelegate {
35 JobDelegate(internal::JobTaskSource* task_source,
38 JobDelegate(const JobDelegate&) = delete;
39 JobDelegate& operator=(const JobDelegate&) = delete;
41 ~JobDelegate();
197 RepeatingCallback<void(JobDelegate*)> worker_task,
207 RepeatingCallback<void(JobDelegate*)> worker_task,
Dpost_job.cc20 RepeatingCallback<void(JobDelegate*)> worker_task, in CreateJobTaskSource()
34 JobDelegate::JobDelegate( in JobDelegate() function in base::JobDelegate
42 JobDelegate::~JobDelegate() { in ~JobDelegate()
47 bool JobDelegate::ShouldYield() { in ShouldYield()
63 void JobDelegate::YieldIfNeeded() { in YieldIfNeeded()
67 void JobDelegate::NotifyConcurrencyIncrease() { in NotifyConcurrencyIncrease()
71 uint8_t JobDelegate::GetTaskId() { in GetTaskId()
165 RepeatingCallback<void(JobDelegate*)> worker_task, in PostJob()
180 RepeatingCallback<void(JobDelegate*)> worker_task, in CreateJob()
Dpost_job_unittest.cc28 BindLambdaForTesting([&](JobDelegate* delegate) { --num_tasks_to_run; }), in TEST()
45 CreateJob(FROM_HERE, {}, BindLambdaForTesting([&](JobDelegate* delegate) { in TEST()
73 FROM_HERE, {}, BindLambdaForTesting([&](base::JobDelegate* job) { in TEST()
Djob_perftest.cc207 JobDelegate* delegate) { in RunJobWithNaiveAssignment()
255 std::atomic_size_t* index, JobDelegate* delegate) { in RunJobWithAtomicAssignment()
301 WaitableEvent* complete, JobDelegate* delegate) { in RunJobWithDynamicAssignment()
360 WaitableEvent* complete, JobDelegate* delegate) { in RunJobWithLoopAround()
/external/cronet/base/task/thread_pool/
Dtest_utils.h89 MockJobTask(base::RepeatingCallback<void(JobDelegate*)> worker_task,
105 void Run(JobDelegate* delegate);
117 base::RepeatingCallback<void(JobDelegate*)> worker_task_;
Djob_task_source.cc35 std::invoke_result<decltype(&JobDelegate::GetTaskId),
36 JobDelegate>::type>::max(),
92 RepeatingCallback<void(JobDelegate*)> worker_task, in JobTaskSource()
103 JobDelegate job_delegate{self, self->delegate_}; in JobTaskSource()
140 JobDelegate job_delegate{this, nullptr}; in RunJoinTask()
Dthread_group_unittest.cc533 [&threads_running_barrier, &threads_continue](JobDelegate*) { in TEST_F() argument
563 BindLambdaForTesting([&thread_running, &thread_continue](JobDelegate*) { in TEST_F() argument
607 BindLambdaForTesting([&](JobDelegate* delegate) { in TEST_F()
653 [&threads_running_barrier, &threads_continue](JobDelegate*) { in TEST_F() argument
695 BindRepeating([](JobDelegate*) { ShouldNotRun(); }), in TEST_F() argument
728 BindLambdaForTesting([&](JobDelegate*) { in TEST_F() argument
757 BindLambdaForTesting([&](JobDelegate*) { thread_running.Signal(); }), in TEST_F() argument
782 BindLambdaForTesting([&](JobDelegate*) { thread_running.Signal(); }), in TEST_F() argument
810 BindLambdaForTesting([&](JobDelegate*) { in TEST_F() argument
Djob_task_source.h38 RepeatingCallback<void(JobDelegate*)> worker_task,
220 RepeatingCallback<void(JobDelegate*)> worker_task_;
Djob_task_source_unittest.cc271 [&](JobDelegate* delegate) { --max_concurrency; }), in TEST_F()
298 [&](JobDelegate* delegate) { --max_concurrency; }), in TEST_F()
400 BindLambdaForTesting([](JobDelegate* delegate) { in TEST_F()
431 FROM_HERE, TaskTraits(), BindRepeating([](JobDelegate* delegate) { in TEST_F()
515 FROM_HERE, TaskTraits{}, BindRepeating([](JobDelegate* delegate) { in TEST_F()
Dtest_utils.cc264 base::RepeatingCallback<void(JobDelegate*)> worker_task, in MockJobTask()
271 [](base::OnceClosure&& worker_task, JobDelegate*) mutable { in MockJobTask() argument
281 void MockJobTask::Run(JobDelegate* delegate) { in Run()
Dthread_pool_impl_unittest.cc1313 [&threads_running](JobDelegate*) { threads_running.Signal(); }), in TEST_P() argument
1332 [&threads_running, &threads_continue](JobDelegate* delegate) { in TEST_P()
Dthread_group_impl_unittest.cc314 [&threads_running_barrier, &threads_continue](JobDelegate* delegate) { in TEST_F()
/external/cronet/base/test/launcher/
Dtest_launcher.cc799 base::JobDelegate* delegate);
880 base::JobDelegate* delegate) { in WorkerTask()