Searched refs:TaskScheduler (Results 1 – 17 of 17) sorted by relevance
22 TaskScheduler* g_task_scheduler = nullptr;26 TaskScheduler::InitParams::InitParams( in InitParams()40 TaskScheduler::InitParams::~InitParams() = default;44 void TaskScheduler::CreateAndStartWithDefaultParams(StringPiece name) { in CreateAndStartWithDefaultParams()49 void TaskScheduler::StartWithDefaultParams() { in StartWithDefaultParams()71 void TaskScheduler::Create(StringPiece name) { in Create()76 void TaskScheduler::SetInstance(std::unique_ptr<TaskScheduler> task_scheduler) { in SetInstance()82 TaskScheduler* TaskScheduler::GetInstance() { in GetInstance()
72 DCHECK(TaskScheduler::GetInstance()) in PostDelayedTaskWithTraits()76 TaskScheduler::GetInstance()->PostDelayedTaskWithTraits( in PostDelayedTaskWithTraits()90 DCHECK(TaskScheduler::GetInstance()) in CreateTaskRunnerWithTraits()94 return TaskScheduler::GetInstance()->CreateTaskRunnerWithTraits( in CreateTaskRunnerWithTraits()100 DCHECK(TaskScheduler::GetInstance()) in CreateSequencedTaskRunnerWithTraits()104 return TaskScheduler::GetInstance()->CreateSequencedTaskRunnerWithTraits( in CreateSequencedTaskRunnerWithTraits()111 DCHECK(TaskScheduler::GetInstance()) in CreateSingleThreadTaskRunnerWithTraits()115 return TaskScheduler::GetInstance()->CreateSingleThreadTaskRunnerWithTraits( in CreateSingleThreadTaskRunnerWithTraits()123 DCHECK(TaskScheduler::GetInstance()) in CreateCOMSTATaskRunnerWithTraits()127 return TaskScheduler::GetInstance()->CreateCOMSTATaskRunnerWithTraits( in CreateCOMSTATaskRunnerWithTraits()
69 TaskScheduler::SetInstance( in TEST()71 TaskScheduler::GetInstance()->StartWithDefaultParams(); in TEST()104 TaskScheduler::GetInstance()->JoinForTesting(); in TEST()105 TaskScheduler::SetInstance(nullptr); in TEST()
52 class BASE_EXPORT TaskScheduler {85 virtual ~TaskScheduler() = default;213 static void SetInstance(std::unique_ptr<TaskScheduler> task_scheduler);226 static TaskScheduler* GetInstance();
45 class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {65 void Start(const TaskScheduler::InitParams& init_params,
39 if (task_tracker_ && TaskScheduler::GetInstance()) { in Init()
88 const TaskScheduler::InitParams& init_params, in Start()
122 CHECK(!TaskScheduler::GetInstance()); in ScopedTaskEnvironment()136 TaskScheduler::SetInstance(std::make_unique<internal::TaskSchedulerImpl>( in ScopedTaskEnvironment()138 task_scheduler_ = TaskScheduler::GetInstance(); in ScopedTaskEnvironment()139 TaskScheduler::GetInstance()->Start({worker_pool_params, worker_pool_params, in ScopedTaskEnvironment()151 CHECK_EQ(TaskScheduler::GetInstance(), task_scheduler_); in ~ScopedTaskEnvironment()155 TaskScheduler::GetInstance()->FlushForTesting(); in ~ScopedTaskEnvironment()156 TaskScheduler::GetInstance()->Shutdown(); in ~ScopedTaskEnvironment()157 TaskScheduler::GetInstance()->JoinForTesting(); in ~ScopedTaskEnvironment()162 TaskScheduler::SetInstance(nullptr); in ~ScopedTaskEnvironment()
23 class TaskScheduler; variable162 const TaskScheduler* task_scheduler_ = nullptr;
44 TaskScheduler::CreateAndStartWithDefaultParams("MessageLoopTest");55 base::TaskScheduler::GetInstance()->JoinForTesting();56 base::TaskScheduler::SetInstance(nullptr);70 TaskScheduler::CreateAndStartWithDefaultParams("MessageLoopTypedTest");82 base::TaskScheduler::GetInstance()->JoinForTesting();83 base::TaskScheduler::SetInstance(nullptr);
13 +// TaskScheduler not supported in libchrome23 +// TaskScheduler not supported in libchrome36 +// TaskScheduler not supported in libchrome53 +// TaskScheduler not supported in libchrome
3 - base/task/task_scheduler/: implementation of the TaskScheduler.6 Apart from embedders explicitly managing a TaskScheduler and/or SequenceManager
50 base::TaskScheduler::CreateAndStartWithDefaultParams( in Environment()
39 base::TaskScheduler::CreateAndStartWithDefaultParams( in Environment()
22 base::TaskScheduler::CreateAndStartWithDefaultParams( in Environment()
291 TaskScheduler::CreateAndStartWithDefaultParams("MessageLoopTest"); in SetUp()301 base::TaskScheduler::GetInstance()->FlushForTesting(); in TearDown()302 base::TaskScheduler::GetInstance()->Shutdown(); in TearDown()303 base::TaskScheduler::GetInstance()->JoinForTesting(); in TearDown()304 base::TaskScheduler::SetInstance(nullptr); in TearDown()792 TaskScheduler::CreateAndStartWithDefaultParams("MessageLoopTypedTest"); in SetUp()804 base::TaskScheduler::GetInstance()->FlushForTesting(); in TearDown()805 base::TaskScheduler::GetInstance()->Shutdown(); in TearDown()806 base::TaskScheduler::GetInstance()->JoinForTesting(); in TearDown()807 base::TaskScheduler::SetInstance(nullptr); in TearDown()
715 TaskScheduler::GetInstance()->FlushForTesting();719 TaskScheduler::GetInstance()->FlushForTesting();798 TaskScheduler::GetInstance()->FlushForTesting();