5#define FML_USED_ON_EMBEDDER
7#include "flutter/fml/task_runner.h"
8#include "flutter/fml/memory/task_runner_checker.h"
12#include "flutter/fml/logging.h"
13#include "flutter/fml/message_loop.h"
14#include "flutter/fml/message_loop_impl.h"
15#include "flutter/fml/message_loop_task_queues.h"
20 : loop_(
std::move(loop)) {}
30 loop_->PostTask(task, target_time);
40 return loop_->GetTaskQueueId();
49 const auto loop_queue_id = loop_->GetTaskQueueId();
static bool IsInitializedForCurrentThread()
static TaskQueueId GetCurrentTaskQueueId()
static bool RunsOnTheSameThread(TaskQueueId queue_a, TaskQueueId queue_b)
static void RunNowOrPostTask(const fml::RefPtr< fml::TaskRunner > &runner, const fml::closure &task)
virtual void PostTaskForTime(const fml::closure &task, fml::TimePoint target_time)
virtual void PostTask(const fml::closure &task) override
TaskRunner(fml::RefPtr< MessageLoopImpl > loop)
virtual bool RunsTasksOnCurrentThread()
virtual TaskQueueId GetTaskQueueId()
virtual void PostDelayedTask(const fml::closure &task, fml::TimeDelta delay)
#define FML_DCHECK(condition)
std::function< void()> closure