Flutter Engine
The Flutter Engine
|
#include <message_loop.h>
Public Member Functions | |
void | Run () |
void | Terminate () |
void | AddTaskObserver (intptr_t key, const fml::closure &callback) |
void | RemoveTaskObserver (intptr_t key) |
fml::RefPtr< fml::TaskRunner > | GetTaskRunner () const |
void | RunExpiredTasksNow () |
~MessageLoop () | |
Static Public Member Functions | |
static FML_EMBEDDER_ONLY MessageLoop & | GetCurrent () |
static void | EnsureInitializedForCurrentThread () |
static bool | IsInitializedForCurrentThread () |
static TaskQueueId | GetCurrentTaskQueueId () |
Friends | |
class | TaskRunner |
class | MessageLoopImpl |
An event loop associated with a thread.
This class is the generic front-end to the MessageLoop, differences in implementation based on the running platform are in the subclasses of flutter::MessageLoopImpl (ex flutter::MessageLoopAndroid).
For scheduling events on the message loop see flutter::TaskRunner.
Definition at line 28 of file message_loop.h.
|
default |
void fml::MessageLoop::AddTaskObserver | ( | intptr_t | key, |
const fml::closure & | callback | ||
) |
Definition at line 64 of file message_loop.cc.
|
static |
Definition at line 27 of file message_loop.cc.
|
static |
Definition at line 19 of file message_loop.cc.
|
static |
Gets the unique identifier for the TaskQueue associated with the current thread.
Definition at line 76 of file message_loop.cc.
fml::RefPtr< fml::TaskRunner > fml::MessageLoop::GetTaskRunner | ( | ) | const |
Definition at line 56 of file message_loop.cc.
|
static |
Returns true if EnsureInitializedForCurrentThread
has been called on this thread already.
Definition at line 35 of file message_loop.cc.
void fml::MessageLoop::RemoveTaskObserver | ( | intptr_t | key | ) |
Definition at line 68 of file message_loop.cc.
void fml::MessageLoop::Run | ( | ) |
Definition at line 48 of file message_loop.cc.
void fml::MessageLoop::RunExpiredTasksNow | ( | ) |
Definition at line 72 of file message_loop.cc.
void fml::MessageLoop::Terminate | ( | ) |
Definition at line 52 of file message_loop.cc.
|
friend |
Definition at line 62 of file message_loop.h.
|
friend |
Definition at line 61 of file message_loop.h.