5#include "flutter/fml/message_loop.h"
10#include "flutter/fml/memory/ref_counted.h"
11#include "flutter/fml/memory/ref_ptr.h"
12#include "flutter/fml/message_loop_impl.h"
13#include "flutter/fml/task_runner.h"
22 <<
"MessageLoop::EnsureInitializedForCurrentThread was not called on "
23 "this thread prior to message loop use.";
39MessageLoop::MessageLoop()
69 loop_->RemoveTaskObserver(
key);
73 loop_->RunExpiredTasksNow();
79 <<
"MessageLoop::EnsureInitializedForCurrentThread was not called on "
80 "this thread prior to message loop use.";
81 return loop->GetLoopImpl()->GetTaskQueueId();
static sk_sp< Effect > Create()
void RemoveTaskObserver(intptr_t key)
static void EnsureInitializedForCurrentThread()
void AddTaskObserver(intptr_t key, const fml::closure &callback)
fml::RefPtr< fml::TaskRunner > GetTaskRunner() const
static FML_EMBEDDER_ONLY MessageLoop & GetCurrent()
static bool IsInitializedForCurrentThread()
static TaskQueueId GetCurrentTaskQueueId()
void RunExpiredTasksNow()
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
#define FML_CHECK(condition)
static thread_local std::unique_ptr< MessageLoop > tls_message_loop
RefPtr< T > MakeRefCounted(Args &&... args)
std::function< void()> closure