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();
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()
FlutterDesktopBinaryReply callback
#define FML_CHECK(condition)
static thread_local std::unique_ptr< MessageLoop > tls_message_loop
RefPtr< T > MakeRefCounted(Args &&... args)
std::function< void()> closure