Home
last modified time | relevance | path

Searched refs:MessageLoop (Results 1 – 25 of 26) sorted by relevance

12

/third_party/flutter/engine/flutter/fml/
Dmessage_loop.cc17 FML_THREAD_LOCAL ThreadLocalUniquePtr<MessageLoop> tls_message_loop;
19 MessageLoop& MessageLoop::GetCurrent() { in GetCurrent()
27 void MessageLoop::EnsureInitializedForCurrentThread() { in EnsureInitializedForCurrentThread()
32 tls_message_loop.reset(new MessageLoop()); in EnsureInitializedForCurrentThread()
35 bool MessageLoop::IsInitializedForCurrentThread() { in IsInitializedForCurrentThread()
39 MessageLoop::MessageLoop() in MessageLoop() function in fml::MessageLoop
46 MessageLoop::~MessageLoop() = default;
48 void MessageLoop::Run() { in Run()
52 void MessageLoop::Terminate() { in Terminate()
56 fml::RefPtr<fml::TaskRunner> MessageLoop::GetTaskRunner() const { in GetTaskRunner()
[all …]
Dmessage_loop_unittests.cc24 TEST(MessageLoop, GetCurrent) { in TEST() argument
26 fml::MessageLoop::EnsureInitializedForCurrentThread(); in TEST()
27 ASSERT_TRUE(fml::MessageLoop::GetCurrent().GetTaskRunner()); in TEST()
32 TEST(MessageLoop, DifferentThreadsHaveDifferentLoops) { in TEST() argument
33 fml::MessageLoop* loop1 = nullptr; in TEST()
37 fml::MessageLoop::EnsureInitializedForCurrentThread(); in TEST()
38 loop1 = &fml::MessageLoop::GetCurrent(); in TEST()
43 fml::MessageLoop* loop2 = nullptr; in TEST()
47 fml::MessageLoop::EnsureInitializedForCurrentThread(); in TEST()
48 loop2 = &fml::MessageLoop::GetCurrent(); in TEST()
[all …]
Dgpu_thread_merger_unittests.cc18 fml::MessageLoop* loop1 = nullptr; in TEST()
22 fml::MessageLoop::EnsureInitializedForCurrentThread(); in TEST()
23 loop1 = &fml::MessageLoop::GetCurrent(); in TEST()
28 fml::MessageLoop* loop2 = nullptr; in TEST()
32 fml::MessageLoop::EnsureInitializedForCurrentThread(); in TEST()
33 loop2 = &fml::MessageLoop::GetCurrent(); in TEST()
65 fml::MessageLoop* loop1 = nullptr; in TEST()
68 fml::MessageLoop::EnsureInitializedForCurrentThread(); in TEST()
69 loop1 = &fml::MessageLoop::GetCurrent(); in TEST()
74 fml::MessageLoop* loop2 = nullptr; in TEST()
[all …]
Dmessage_loop.h16 class MessageLoop {
19 static MessageLoop& GetCurrent();
41 ~MessageLoop();
52 MessageLoop();
56 FML_DISALLOW_COPY_AND_ASSIGN(MessageLoop);
Dthread.cc31 fml::MessageLoop::EnsureInitializedForCurrentThread(); in Thread()
32 auto& loop = MessageLoop::GetCurrent(); in Thread()
54 task_runner_->PostTask([]() { MessageLoop::GetCurrent().Terminate(); }); in Join()
Dtask_runner.cc42 if (!fml::MessageLoop::IsInitializedForCurrentThread()) { in RunsTasksOnCurrentThread()
46 const auto current_queue_id = MessageLoop::GetCurrentTaskQueueId(); in RunsTasksOnCurrentThread()
Dmessage_loop_impl.cc70 FML_DCHECK(MessageLoop::GetCurrent().GetLoopImpl().get() == this) in AddTaskObserver()
81 FML_DCHECK(MessageLoop::GetCurrent().GetLoopImpl().get() == this) in RemoveTaskObserver()
Dmessage_loop_impl.h53 friend class MessageLoop;
Dgpu_thread_merger.cc32 const auto current_queue_id = MessageLoop::GetCurrentTaskQueueId(); in IsOnRasterizingThread()
/third_party/flutter/engine/flutter/shell/testing/
Dtester_main.cc60 []() { fml::MessageLoop::GetCurrent().Terminate(); }); in DidProcessTask()
77 fml::MessageLoop::EnsureInitializedForCurrentThread(); in RunTester()
79 auto current_task_runner = fml::MessageLoop::GetCurrent().GetTaskRunner(); in RunTester()
157 fml::MessageLoop::GetCurrent() in RunTester()
164 fml::MessageLoop::GetCurrent().AddTaskObserver( in RunTester()
182 fml::MessageLoop::GetCurrent().Run(); in RunTester()
186 fml::MessageLoop::GetCurrent().RemoveTaskObserver( in RunTester()
231 fml::MessageLoop::GetCurrent().AddTaskObserver(key, std::move(callback)); in main()
235 fml::MessageLoop::GetCurrent().RemoveTaskObserver(key); in main()
/third_party/flutter/engine/flutter/shell/platform/android/
Dflutter_main.cc97 fml::MessageLoop::GetCurrent().AddTaskObserver(key, std::move(callback)); in Init()
101 fml::MessageLoop::GetCurrent().RemoveTaskObserver(key); in Init()
143 fml::MessageLoop::EnsureInitializedForCurrentThread(); in SetupObservatoryUriCallback()
145 fml::MessageLoop::GetCurrent().GetTaskRunner(); in SetupObservatoryUriCallback()
Dandroid_shell_holder.cc81 fml::MessageLoop::EnsureInitializedForCurrentThread(); in AndroidShellHolder()
86 fml::MessageLoop::GetCurrent().GetTaskRunner(); in AndroidShellHolder()
/third_party/flutter/engine/flutter/testing/
Dthread_test.cc17 fml::MessageLoop::EnsureInitializedForCurrentThread(); in SetUp()
18 current_task_runner_ = fml::MessageLoop::GetCurrent().GetTaskRunner(); in SetUp()
/third_party/flutter/engine/flutter/shell/platform/embedder/
Dembedder_thread_host.cc106 fml::MessageLoop::EnsureInitializedForCurrentThread(); in GetCurrentThreadTaskRunner()
107 return fml::MessageLoop::GetCurrent().GetTaskRunner(); in GetCurrentThreadTaskRunner()
Dace_embedder.cc559 fml::MessageLoop::GetCurrent().AddTaskObserver(key, std::move(callback)); in FlutterEngineInitialize()
562 fml::MessageLoop::GetCurrent().RemoveTaskObserver(key); in FlutterEngineInitialize()
1013 fml::MessageLoop::GetCurrent().RunExpiredTasksNow(); in __FlutterEngineFlushPendingTasksNow()
Dembedder.cc646 fml::MessageLoop::GetCurrent().AddTaskObserver(key, std::move(callback)); in FlutterEngineInitialize()
649 fml::MessageLoop::GetCurrent().RemoveTaskObserver(key); in FlutterEngineInitialize()
1210 fml::MessageLoop::GetCurrent().RunExpiredTasksNow(); in __FlutterEngineFlushPendingTasksNow()
/third_party/flutter/engine/flutter/shell/common/
Dshell_test.cc151 fml::MessageLoop::GetCurrent().AddTaskObserver(key, handler); in CreateSettingsForFixture()
154 fml::MessageLoop::GetCurrent().RemoveTaskObserver(key); in CreateSettingsForFixture()
Dshell_unittests.cc98 fml::MessageLoop::EnsureInitializedForCurrentThread(); in TEST_F()
99 auto task_runner = fml::MessageLoop::GetCurrent().GetTaskRunner(); in TEST_F()
116 fml::MessageLoop::EnsureInitializedForCurrentThread(); in TEST_F()
118 fml::MessageLoop::GetCurrent().GetTaskRunner(), in TEST_F()
/third_party/flutter/engine/flutter/shell/platform/darwin/ios/framework/Source/
DFlutterObservatoryPublisher.mm60 fml::MessageLoop::EnsureInitializedForCurrentThread();
64 runner = fml::MessageLoop::GetCurrent().GetTaskRunner()](const std::string& uri) {
DFlutterDartProject.mm50 fml::MessageLoop::GetCurrent().AddTaskObserver(key, std::move(callback));
54 fml::MessageLoop::GetCurrent().RemoveTaskObserver(key);
DFlutterEngine.mm282 fml::MessageLoop::EnsureInitializedForCurrentThread();
311 fml::MessageLoop::GetCurrent().GetTaskRunner(), // platform
312 fml::MessageLoop::GetCurrent().GetTaskRunner(), // gpu
324 fml::MessageLoop::GetCurrent().GetTaskRunner(), // platform
/third_party/flutter/engine/flutter/shell/platform/ohos/
Dohos_shell_holder.cc69 fml::MessageLoop::EnsureInitializedForCurrentThread(); in OhosShellHolder()
/third_party/flutter/engine/flutter/shell/platform/embedder/tests/
Dembedder_a11y_unittests.cc155 fml::MessageLoop::GetCurrent().RunExpiredTasksNow(); in TEST_F()
Dembedder_unittests.cc183 fml::MessageLoop::GetCurrent().GetTaskRunner()); in TEST_F()
239 fml::MessageLoop::GetCurrent().GetTaskRunner()); in TEST_F()
/third_party/cef/patch/
Dpatch.cfg50 # Revert change on Windows that removes MessageLoop::os_modal_loop().
56 # Add MessageLoop::ReleasePump to fix crashes during shutdown with multi-

12