#include <embedder_thread_host.h>
Definition at line 20 of file embedder_thread_host.h.
◆ EmbedderThreadHost()
Definition at line 270 of file embedder_thread_host.cc.
274 : host_(std::move(
host)), runners_(runners) {
275 for (const auto& runner : embedder_task_runners) {
276 runners_map_[reinterpret_cast<int64_t>(runner.get())] = runner;
277 }
278}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service host
◆ ~EmbedderThreadHost()
flutter::EmbedderThreadHost::~EmbedderThreadHost |
( |
| ) |
|
|
default |
◆ CreateEmbedderOrEngineManagedThreadHost()
Definition at line 83 of file embedder_thread_host.cc.
85 {
86 {
88 CreateEmbedderManagedThreadHost(custom_task_runners, config_setter);
91 }
92 }
93
94
95
96
97
98 if (custom_task_runners == nullptr) {
99 auto host = CreateEngineManagedThreadHost(config_setter);
102 }
103 }
104
105 return nullptr;
106}
◆ GetTaskRunners()
◆ IsValid()
bool flutter::EmbedderThreadHost::IsValid |
( |
| ) |
const |
◆ PostTask()
bool flutter::EmbedderThreadHost::PostTask |
( |
int64_t |
runner, |
|
|
uint64_t |
task |
|
) |
| const |
Definition at line 290 of file embedder_thread_host.cc.
290 {
291 auto found = runners_map_.find(runner);
292 if (found == runners_map_.end()) {
293 return false;
294 }
295 return found->second->PostTask(task);
296}
The documentation for this class was generated from the following files: