Home
last modified time | relevance | path

Searched refs:TaskScheduler (Results 1 – 20 of 20) sorted by relevance

/external/libchrome/base/task_scheduler/
Dtask_scheduler.cc22 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()
Dpost_task.cc72 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()
Dservice_thread_unittest.cc69 TaskScheduler::SetInstance( in TEST()
71 TaskScheduler::GetInstance()->StartWithDefaultParams(); in TEST()
104 TaskScheduler::GetInstance()->JoinForTesting(); in TEST()
105 TaskScheduler::SetInstance(nullptr); in TEST()
Dtask_scheduler.h52 class BASE_EXPORT TaskScheduler {
85 virtual ~TaskScheduler() = default;
213 static void SetInstance(std::unique_ptr<TaskScheduler> task_scheduler);
226 static TaskScheduler* GetInstance();
Dtask_scheduler_impl.h45 class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
65 void Start(const TaskScheduler::InitParams& init_params,
Dservice_thread.cc39 if (task_tracker_ && TaskScheduler::GetInstance()) { in Init()
Dtask_scheduler_impl.cc88 const TaskScheduler::InitParams& init_params, in Start()
Dtask_scheduler_impl_unittest.cc134 TaskScheduler* scheduler, in CreateTaskRunnerWithTraitsAndExecutionMode()
/external/libchrome/base/test/
Dscoped_task_environment.cc122 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()
Dscoped_task_environment.h23 class TaskScheduler; variable
162 const TaskScheduler* task_scheduler_ = nullptr;
/external/libchrome/libchrome_tools/patch/
Dmessage_loop_unittest.patch44 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);
Dobserver_list_unittest.patch13 +// TaskScheduler not supported in libchrome
23 +// TaskScheduler not supported in libchrome
36 +// TaskScheduler not supported in libchrome
53 +// TaskScheduler not supported in libchrome
/external/libchrome/base/task/
DREADME.md3 - base/task/task_scheduler/: implementation of the TaskScheduler.
6 Apart from embedders explicitly managing a TaskScheduler and/or SequenceManager
/external/libchrome/base/i18n/
Dstreaming_utf8_validator_unittest.cc113 base::TaskScheduler::CreateAndStartWithDefaultParams( in TEST_F()
128 base::TaskScheduler::GetInstance()->Shutdown(); in TEST_F()
129 base::TaskScheduler::GetInstance()->JoinForTesting(); in TEST_F()
130 base::TaskScheduler::SetInstance(nullptr); in TEST_F()
/external/libchrome/mojo/public/tools/fuzzers/
Dmojo_parse_message_proto_fuzzer.cc50 base::TaskScheduler::CreateAndStartWithDefaultParams( in Environment()
Dmojo_parse_message_fuzzer.cc39 base::TaskScheduler::CreateAndStartWithDefaultParams( in Environment()
Dmojo_fuzzer_message_dump.cc22 base::TaskScheduler::CreateAndStartWithDefaultParams( in Environment()
/external/libchrome/base/message_loop/
Dmessage_loop_unittest.cc291 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()
/external/libchrome/base/test/launcher/
Dtest_launcher.cc145 base::TaskScheduler::Create("TestLauncher"); in CreateAndStartTaskScheduler()
146 base::TaskScheduler::GetInstance()->Start( in CreateAndStartTaskScheduler()
556 if (base::TaskScheduler::GetInstance()) { in ~TestLauncher()
557 base::TaskScheduler::GetInstance()->Shutdown(); in ~TestLauncher()
/external/libchrome/base/
Dobserver_list_unittest.cc715 TaskScheduler::GetInstance()->FlushForTesting();
719 TaskScheduler::GetInstance()->FlushForTesting();
798 TaskScheduler::GetInstance()->FlushForTesting();