#include <task_runner_window.h>
Definition at line 56 of file task_runner_window.h.
◆ ~TaskRunnerWindow()
| flutter::TaskRunnerWindow::~TaskRunnerWindow |
( |
| ) |
|
Definition at line 109 of file task_runner_window.cc.
110 timer_thread_.
Stop();
112 if (window_handle_) {
113 DestroyWindow(window_handle_);
114 window_handle_ =
nullptr;
116 UnregisterClass(window_class_name_.c_str(),
nullptr);
◆ AddDelegate()
| void flutter::TaskRunnerWindow::AddDelegate |
( |
Delegate * |
delegate | ) |
|
◆ GetSharedInstance()
| std::shared_ptr< TaskRunnerWindow > flutter::TaskRunnerWindow::GetSharedInstance |
( |
| ) |
|
|
static |
◆ PollOnce()
| void flutter::TaskRunnerWindow::PollOnce |
( |
std::chrono::milliseconds |
timeout | ) |
|
◆ RemoveDelegate()
| void flutter::TaskRunnerWindow::RemoveDelegate |
( |
Delegate * |
delegate | ) |
|
Definition at line 157 of file task_runner_window.cc.
158 auto i = std::find(delegates_.begin(), delegates_.end(), delegate);
159 if (i != delegates_.end()) {
◆ WakeUp()
| void flutter::TaskRunnerWindow::WakeUp |
( |
| ) |
|
Definition at line 140 of file task_runner_window.cc.
141 bool expected =
false;
145 if (wake_up_posted_.compare_exchange_strong(expected,
true)) {
146 if (!PostMessage(window_handle_, WM_NULL, 0, 0)) {
147 FML_LOG(ERROR) <<
"Failed to post message to main thread.";
Referenced by flutter::testing::TEST().
◆ testing::TestTaskRunnerWindow
The documentation for this class was generated from the following files: