5#ifndef FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_THREAD_HOST_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_THREAD_HOST_H_
12#include "flutter/common/task_runners.h"
13#include "flutter/fml/macros.h"
14#include "flutter/shell/common/thread_host.h"
15#include "flutter/shell/platform/embedder/embedder.h"
16#include "flutter/shell/platform/embedder/embedder_task_runner.h"
22 static std::unique_ptr<EmbedderThreadHost>
39 bool PostTask(int64_t runner, uint64_t task)
const;
44 std::map<int64_t, fml::RefPtr<EmbedderTaskRunner>> runners_map_;
46 static std::unique_ptr<EmbedderThreadHost> CreateEmbedderManagedThreadHost(
51 static std::unique_ptr<EmbedderThreadHost> CreateEngineManagedThreadHost(
bool PostTask(int64_t runner, uint64_t task) const
const flutter::TaskRunners & GetTaskRunners() const
static std::unique_ptr< EmbedderThreadHost > CreateEmbedderOrEngineManagedThreadHost(const FlutterCustomTaskRunners *custom_task_runners, const flutter::ThreadConfigSetter &config_setter=fml::Thread::SetCurrentThreadName)
EmbedderThreadHost(ThreadHost host, const flutter::TaskRunners &runners, const std::set< fml::RefPtr< EmbedderTaskRunner > > &embedder_task_runners)
static void SetCurrentThreadName(const ThreadConfig &config)
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
fml::Thread::ThreadConfigSetter ThreadConfigSetter
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 The hostname IP address on which the Dart VM Service should be served If not set
The collection of all the threads used by the engine.