Flutter Engine
 
Loading...
Searching...
No Matches
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
 
std::function< void()> destruction_callback
 Performs user-designated cleanup on destruction.
 

Detailed Description

A.

Definition at line 25 of file embedder_task_runner.h.

Member Data Documentation

◆ destruction_callback

std::function<void()> flutter::EmbedderTaskRunner::DispatchTable::destruction_callback

Performs user-designated cleanup on destruction.

Definition at line 45 of file embedder_task_runner.h.

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

◆ 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::CreateEmbedderTaskRunner(), and flutter::EmbedderTaskRunner::EmbedderTaskRunner().

◆ 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 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().


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