Home
last modified time | relevance | path

Searched refs:shutdown_behavior (Results 1 – 9 of 9) sorted by relevance

/external/libchrome/base/task_scheduler/
Dtask_traits_unittest.cc15 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, traits.shutdown_behavior()); in TEST()
24 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, traits.shutdown_behavior()); in TEST()
33 EXPECT_EQ(TaskShutdownBehavior::BLOCK_SHUTDOWN, traits.shutdown_behavior()); in TEST()
42 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, traits.shutdown_behavior()); in TEST()
51 EXPECT_EQ(TaskShutdownBehavior::SKIP_ON_SHUTDOWN, traits.shutdown_behavior()); in TEST()
62 EXPECT_EQ(TaskShutdownBehavior::BLOCK_SHUTDOWN, traits.shutdown_behavior()); in TEST()
75 EXPECT_EQ(traits.shutdown_behavior(), traits_copy.shutdown_behavior()); in TEST()
89 overridden.shutdown_behavior()); in TEST()
102 overridden.shutdown_behavior()); in TEST()
116 overridden.shutdown_behavior()); in TEST()
[all …]
Dtask_unittest.cc25 continue_on_shutdown.traits.shutdown_behavior()); in TEST()
31 skip_on_shutdown.traits.shutdown_behavior()); in TEST()
37 block_shutdown.traits.shutdown_behavior()); in TEST()
46 continue_on_shutdown.traits.shutdown_behavior()); in TEST()
51 skip_on_shutdown.traits.shutdown_behavior()); in TEST()
56 block_shutdown.traits.shutdown_behavior()); in TEST()
Dtask_traits.cc29 TaskShutdownBehavior shutdown_behavior) { in TaskShutdownBehaviorToString() argument
30 switch (shutdown_behavior) { in TaskShutdownBehaviorToString()
48 const TaskShutdownBehavior& shutdown_behavior) { in operator <<() argument
49 os << TaskShutdownBehaviorToString(shutdown_behavior); in operator <<()
Dtask_tracker.cc344 if (!BeforePostTask(task->traits.shutdown_behavior())) in WillPostTask()
398 const TaskShutdownBehavior shutdown_behavior = in RunAndPopNextTask() local
399 task->traits.shutdown_behavior(); in RunAndPopNextTask()
401 const bool can_run_task = BeforeRunTask(shutdown_behavior); in RunAndPopNextTask()
406 AfterRunTask(shutdown_behavior); in RunAndPopNextTask()
474 task.traits.shutdown_behavior() != in RunOrSkipTask()
655 bool TaskTracker::BeforePostTask(TaskShutdownBehavior shutdown_behavior) { in BeforePostTask() argument
656 if (shutdown_behavior == TaskShutdownBehavior::BLOCK_SHUTDOWN) { in BeforePostTask()
706 bool TaskTracker::BeforeRunTask(TaskShutdownBehavior shutdown_behavior) { in BeforeRunTask() argument
707 switch (shutdown_behavior) { in BeforeRunTask()
[all …]
Dtask_tracker.h243 bool BeforePostTask(TaskShutdownBehavior shutdown_behavior);
248 bool BeforeRunTask(TaskShutdownBehavior shutdown_behavior);
253 void AfterRunTask(TaskShutdownBehavior shutdown_behavior);
Dtask_traits.h195 constexpr TaskShutdownBehavior shutdown_behavior() const { in shutdown_behavior() function
240 const TaskPriority& shutdown_behavior);
243 const TaskShutdownBehavior& shutdown_behavior);
Dtask.cc27 traits.shutdown_behavior() == TaskShutdownBehavior::BLOCK_SHUTDOWN in Task()
36 traits.shutdown_behavior() == TaskShutdownBehavior::BLOCK_SHUTDOWN) in Task()
Dscheduler_single_thread_task_runner_manager.cc456 if (traits.shutdown_behavior() == TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN) in TraitsToContinueOnShutdown()
Dtask_tracker_unittest.cc171 Task CreateTask(TaskShutdownBehavior shutdown_behavior) { in CreateTask() argument
175 TaskTraits(shutdown_behavior), TimeDelta()); in CreateTask()