Flutter Engine
flutter::EmbedderTaskRunner::DispatchTable Struct Reference

A. More...

#include <embedder_task_runner.h>

Public Attributes

std::function< void(EmbedderTaskRunner *task_runner, uint64_t task_baton, fml::TimePoint target_time)> post_task_callback
 
std::function< bool(void)> runs_task_on_current_thread_callback
 

Detailed Description

A.

Definition at line 25 of file embedder_task_runner.h.

Member Data Documentation

◆ post_task_callback

std::function<void(EmbedderTaskRunner* task_runner, uint64_t task_baton, fml::TimePoint target_time)> flutter::EmbedderTaskRunner::DispatchTable::post_task_callback

Delegates responsibility of deferred task execution to the embedder. Once the embedder gets the task, it must call EmbedderTaskRunner::PostTask with the supplied task_baton on the correct thread after the tasks target_time point expires.

Definition at line 35 of file embedder_task_runner.h.

Referenced by flutter::EmbedderTaskRunner::EmbedderTaskRunner(), and flutter::EmbedderTaskRunner::GetEmbedderIdentifier().

◆ runs_task_on_current_thread_callback

std::function<bool(void)> flutter::EmbedderTaskRunner::DispatchTable::runs_task_on_current_thread_callback

Asks the embedder if tasks posted to it on this task task runner via the post_task_callback will be executed (after task expiry) on the calling thread.

Definition at line 41 of file embedder_task_runner.h.

Referenced by flutter::EmbedderTaskRunner::EmbedderTaskRunner(), and flutter::EmbedderTaskRunner::GetEmbedderIdentifier().


The documentation for this struct was generated from the following file: