Home
last modified time | relevance | path

Searched refs:TaskTraits (Results 1 – 25 of 31) sorted by relevance

12

/external/libchrome/base/task_scheduler/
Dtask_traits_unittest.cc12 constexpr TaskTraits traits = {}; in TEST()
21 constexpr TaskTraits traits = {TaskPriority::BACKGROUND}; in TEST()
30 constexpr TaskTraits traits = {TaskShutdownBehavior::BLOCK_SHUTDOWN}; in TEST()
39 constexpr TaskTraits traits = {MayBlock()}; in TEST()
48 constexpr TaskTraits traits = {WithBaseSyncPrimitives()}; in TEST()
57 constexpr TaskTraits traits = {TaskPriority::BACKGROUND, in TEST()
68 constexpr TaskTraits traits = {TaskPriority::BACKGROUND, in TEST()
71 constexpr TaskTraits traits_copy(traits); in TEST()
82 constexpr TaskTraits left = {TaskPriority::BACKGROUND}; in TEST()
83 constexpr TaskTraits right = {TaskPriority::USER_BLOCKING}; in TEST()
[all …]
Dpost_task.cc21 explicit PostTaskAndReplyWithTraitsTaskRunner(const TaskTraits& traits) in PostTaskAndReplyWithTraitsTaskRunner()
30 const TaskTraits traits_;
36 TaskTraits GetTaskTraitsWithExplicitPriority(const TaskTraits& traits) { in GetTaskTraitsWithExplicitPriority()
39 return TaskTraits::Override(traits, in GetTaskTraitsWithExplicitPriority()
52 PostDelayedTaskWithTraits(from_here, TaskTraits(), std::move(task), delay); in PostDelayedTask()
58 PostTaskWithTraitsAndReply(from_here, TaskTraits(), std::move(task), in PostTaskAndReply()
63 const TaskTraits& traits, in PostTaskWithTraits()
69 const TaskTraits& traits, in PostDelayedTaskWithTraits()
82 const TaskTraits& traits, in PostTaskWithTraitsAndReply()
89 scoped_refptr<TaskRunner> CreateTaskRunnerWithTraits(const TaskTraits& traits) { in CreateTaskRunnerWithTraits()
[all …]
Dtask_traits.h117 class BASE_EXPORT TaskTraits {
151 constexpr TaskTraits(ArgTypes... args) in TaskTraits() function
170 constexpr TaskTraits(const TaskTraits& other) = default;
171 TaskTraits& operator=(const TaskTraits& other) = default;
176 static constexpr TaskTraits Override(const TaskTraits& left, in Override()
177 const TaskTraits& right) { in Override()
178 return TaskTraits(left, right); in Override()
208 constexpr TaskTraits(const TaskTraits& left, const TaskTraits& right) in TaskTraits() function
Dtask_traits_unittest.nc12 …BLOCK) // [r"Multiple arguments of the same type were provided to the constructor of TaskTraits."]
13 constexpr TaskTraits traits = {MayBlock(), MayBlock()};
14 …TIVES) // [r"Multiple arguments of the same type were provided to the constructor of TaskTraits."]
15 constexpr TaskTraits traits = {WithBaseSyncPrimitives(),
17 …ORITY) // [r"Multiple arguments of the same type were provided to the constructor of TaskTraits."]
18 constexpr TaskTraits traits = {TaskPriority::BACKGROUND,
20 …AVIOR) // [r"Multiple arguments of the same type were provided to the constructor of TaskTraits."]
21 constexpr TaskTraits traits = {TaskShutdownBehavior::BLOCK_SHUTDOWN,
23 …E_MIX) // [r"Multiple arguments of the same type were provided to the constructor of TaskTraits."]
24 constexpr TaskTraits traits = {TaskShutdownBehavior::BLOCK_SHUTDOWN,
[all …]
Dtask_scheduler_impl.h68 const TaskTraits& traits,
72 const TaskTraits& traits) override;
74 const TaskTraits& traits) override;
76 const TaskTraits& traits,
80 const TaskTraits& traits,
85 const TaskTraits& traits) const override;
94 const TaskTraits& traits) const;
98 TaskTraits SetUserBlockingPriorityIfNeeded(const TaskTraits& traits) const;
Dpost_task.h103 PostTaskWithTraitsAndReplyWithResult(from_here, TaskTraits(), std::move(task), in PostTaskAndReplyWithResult()
123 const TaskTraits& traits,
132 const TaskTraits& traits,
141 const TaskTraits& traits,
152 const TaskTraits& traits, in PostTaskWithTraitsAndReplyWithResult()
171 const TaskTraits& traits, in PostTaskWithTraitsAndReplyWithResult()
182 const TaskTraits& traits);
187 CreateSequencedTaskRunnerWithTraits(const TaskTraits& traits);
202 const TaskTraits& traits,
218 CreateCOMSTATaskRunnerWithTraits(const TaskTraits& traits,
Dtask_scheduler_impl.cc176 const TaskTraits& traits, in PostDelayedTaskWithTraits()
180 const TaskTraits new_traits = SetUserBlockingPriorityIfNeeded(traits); in PostDelayedTaskWithTraits()
188 const TaskTraits& traits) { in CreateTaskRunnerWithTraits()
189 const TaskTraits new_traits = SetUserBlockingPriorityIfNeeded(traits); in CreateTaskRunnerWithTraits()
196 const TaskTraits& traits) { in CreateSequencedTaskRunnerWithTraits()
197 const TaskTraits new_traits = SetUserBlockingPriorityIfNeeded(traits); in CreateSequencedTaskRunnerWithTraits()
204 const TaskTraits& traits, in CreateSingleThreadTaskRunnerWithTraits()
214 const TaskTraits& traits, in CreateCOMSTATaskRunnerWithTraits()
230 const TaskTraits& traits) const { in GetMaxConcurrentNonBlockedTasksWithTraitsDeprecated()
269 const TaskTraits& traits) const { in GetWorkerPoolForTraits()
[all …]
Dtask_tracker_unittest.cc95 owned_task_(FROM_HERE, OnceClosure(), TaskTraits(), TimeDelta()), in ThreadPostingAndRunningTask()
175 TaskTraits(shutdown_behavior), TimeDelta()); in CreateTask()
313 TaskTraits(WithBaseSyncPrimitives(), GetParam()), TimeDelta()); in TEST_P()
454 TaskTraits(GetParam()), TimeDelta()); in TEST_P()
479 TaskTraits(MayBlock(), GetParam()), TimeDelta()); in TEST_P()
489 TaskTraits(GetParam()), TimeDelta()); in TEST_P()
525 TaskTraits(GetParam()), TimeDelta()); in TEST_P()
547 TaskTraits(GetParam()), TimeDelta()); in TEST_P()
572 TaskTraits(GetParam()), TimeDelta()); in TEST_P()
579 Task delayed_task(FROM_HERE, DoNothing(), TaskTraits(GetParam()), in TEST_P()
[all …]
Dscheduler_single_thread_task_runner_manager.h24 class TaskTraits; variable
70 const TaskTraits& traits,
79 const TaskTraits& traits,
95 const TaskTraits& traits);
99 const TaskTraits& traits,
115 SchedulerWorker*& GetSharedSchedulerWorkerForTraits(const TaskTraits& traits);
Dtask_scheduler.h102 const TaskTraits& traits,
109 const TaskTraits& traits) = 0;
114 CreateSequencedTaskRunnerWithTraits(const TaskTraits& traits) = 0;
121 const TaskTraits& traits,
135 const TaskTraits& traits,
243 const TaskTraits& traits) const = 0;
Dlazy_task_runner.h98 ALLOW_UNUSED_TYPE constexpr base::TaskTraits \
107 ALLOW_UNUSED_TYPE constexpr base::TaskTraits \
120 ALLOW_UNUSED_TYPE constexpr base::TaskTraits \
139 const TaskTraits& traits,
150 constexpr LazyTaskRunner(const TaskTraits& traits,
168 const TaskTraits traits_;
Dtask_scheduler_impl_unittest.cc59 TraitsExecutionModePair(const TaskTraits& traits, in TraitsExecutionModePair()
63 TaskTraits traits;
79 void VerifyTaskEnvironment(const TaskTraits& traits) { in VerifyTaskEnvironment()
117 void VerifyTaskEnvironmentAndSignalEvent(const TaskTraits& traits, in VerifyTaskEnvironmentAndSignalEvent()
124 void VerifyTimeAndTaskEnvironmentAndSignalEvent(const TaskTraits& traits, in VerifyTimeAndTaskEnvironmentAndSignalEvent()
135 const TaskTraits& traits, in CreateTaskRunnerWithTraitsAndExecutionMode()
158 const TaskTraits& traits, in ThreadPostingTasks()
180 const TaskTraits traits_;
393 TaskTraits::Override(GetParam().traits, in TEST_P()
411 TaskTraits::Override(GetParam().traits, in TEST_P()
[all …]
Dscheduler_worker_pool.cc50 SchedulerParallelTaskRunner(const TaskTraits& traits, in SchedulerParallelTaskRunner()
76 const TaskTraits traits_;
88 SchedulerSequencedTaskRunner(const TaskTraits& traits, in SchedulerSequencedTaskRunner()
125 const TaskTraits traits_;
132 const TaskTraits& traits) { in CreateTaskRunnerWithTraits()
138 const TaskTraits& traits) { in CreateSequencedTaskRunnerWithTraits()
Dpriority_queue_unittest.cc62 TaskTraits(TaskPriority::USER_VISIBLE), in TEST()
68 TaskTraits(TaskPriority::USER_BLOCKING), in TEST()
74 TaskTraits(TaskPriority::USER_BLOCKING), in TEST()
80 TaskTraits(TaskPriority::BACKGROUND), TimeDelta())); in TEST()
Dscheduler_single_thread_task_runner_manager.cc251 TaskTraits(MayBlock()), TimeDelta()); in GetWorkFromWindowsMessageQueue()
282 const TaskTraits& traits, in SchedulerSingleThreadTaskRunner()
379 const TaskTraits traits_;
436 const TaskTraits& traits, in CreateSingleThreadTaskRunnerWithTraits()
445 const TaskTraits& traits, in CreateCOMSTATaskRunnerWithTraits()
455 const TaskTraits& traits) { in TraitsToContinueOnShutdown()
465 const TaskTraits& traits, in CreateTaskRunnerWithTraitsImpl()
584 SchedulerWorkerDelegate>(const TaskTraits& traits) { in GetSharedSchedulerWorkerForTraits()
593 SchedulerWorkerCOMDelegate>(const TaskTraits& traits) { in GetSharedSchedulerWorkerForTraits()
Ddelayed_task_manager_unittest.cc44 TaskTraits(), in TaskSchedulerDelayedTaskManagerTest()
150 TaskTraits(), TimeDelta::FromHours(1)); in TEST_F()
154 TaskTraits(), TimeDelta::FromHours(2)); in TEST_F()
158 TaskTraits(), TimeDelta::FromHours(1)); in TEST_F()
Dtask.h32 const TaskTraits& traits,
44 TaskTraits traits;
Dscheduler_worker_pool.h33 const TaskTraits& traits);
39 const TaskTraits& traits);
Dtask.cc23 const TaskTraits& traits, in Task()
37 ? TaskTraits::Override(traits, in Task()
Dservice_thread.cc65 static constexpr TaskTraits kReportedTraits[] = { in PerformHeartbeatLatencyReport()
78 const TaskTraits& profiled_traits = in PerformHeartbeatLatencyReport()
Dtask_tracker_posix_unittest.cc59 TaskTraits(), TimeDelta()); in TEST_F()
80 TaskTraits(), TimeDelta()); in TEST_F()
Dscheduler_single_thread_task_runner_manager_unittest.cc298 constexpr TaskTraits foo_traits = {TaskPriority::BACKGROUND, in TEST_P()
307 constexpr TaskTraits user_blocking_traits = { in TEST_P()
344 ->CreateSingleThreadTaskRunnerWithTraits(TaskTraits(), GetParam()); in TEST_P()
357 ->CreateSingleThreadTaskRunnerWithTraits(TaskTraits(), GetParam()); in TEST_P()
388 ->CreateSingleThreadTaskRunnerWithTraits(TaskTraits(), GetParam()); in TEST_P()
638 TaskTraits(), SingleThreadTaskRunnerThreadMode::DEDICATED) in TEST_F()
Dsequence_unittest.cc150 sequence->PushTask(Task(FROM_HERE, DoNothing(), TaskTraits(), TimeDelta())); in TEST()
159 sequence->PushTask(Task(FROM_HERE, DoNothing(), TaskTraits(), TimeDelta())); in TEST()
Denvironment_config.cc14 size_t GetEnvironmentIndexForTraits(const TaskTraits& traits) { in GetEnvironmentIndexForTraits()
Denvironment_config.h44 size_t BASE_EXPORT GetEnvironmentIndexForTraits(const TaskTraits& traits);

12