5#ifndef FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_THREAD_HOST_H_
6#define FLUTTER_SHELL_PLATFORM_EMBEDDER_EMBEDDER_THREAD_HOST_H_
22 static std::unique_ptr<EmbedderThreadHost>
39 bool PostTask(intptr_t runner, uint64_t task)
const;
48 std::map<intptr_t, fml::RefPtr<EmbedderTaskRunner>> runners_map_;
50 static std::set<intptr_t> active_runners_;
51 static std::mutex active_runners_mutex_;
53 static std::unique_ptr<EmbedderThreadHost> CreateEmbedderManagedThreadHost(
58 static std::unique_ptr<EmbedderThreadHost> CreateEngineManagedThreadHost(
bool PostTask(intptr_t runner, uint64_t task) const
static bool RunnerIsValid(intptr_t runner)
const flutter::TaskRunners & GetTaskRunners() const
void InvalidateActiveRunners()
static std::unique_ptr< EmbedderThreadHost > CreateEmbedderOrEngineManagedThreadHost(const FlutterCustomTaskRunners *custom_task_runners, const flutter::ThreadConfigSetter &config_setter=fml::Thread::SetCurrentThreadName)
static void SetCurrentThreadName(const ThreadConfig &config)
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
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
The collection of all the threads used by the engine.