5#ifndef FLUTTER_FML_MESSAGE_LOOP_IMPL_H_
6#define FLUTTER_FML_MESSAGE_LOOP_IMPL_H_
15#include "flutter/fml/closure.h"
16#include "flutter/fml/delayed_task.h"
17#include "flutter/fml/macros.h"
18#include "flutter/fml/memory/ref_counted.h"
19#include "flutter/fml/message_loop.h"
20#include "flutter/fml/message_loop_task_queues.h"
21#include "flutter/fml/time/time_point.h"
22#include "flutter/fml/wakeable.h"
38 virtual void Run() = 0;
70 std::atomic_bool terminated_;
virtual TaskQueueId GetTaskQueueId() const
virtual void Terminate()=0
void RunExpiredTasksNow()
void AddTaskObserver(intptr_t key, const fml::closure &callback)
void PostTask(const fml::closure &task, fml::TimePoint target_time)
void RemoveTaskObserver(intptr_t key)
static fml::RefPtr< MessageLoopImpl > Create()
virtual ~MessageLoopImpl()
void RunSingleExpiredTaskNow()
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
std::function< void()> closure