Flutter Engine
The Flutter Engine
|
#include <message_loop_task_queues.h>
Static Public Member Functions | |
static MessageLoopTaskQueues * | GetInstance () |
static TaskSourceGrade | GetCurrentTaskSourceGrade () |
A singleton container for all tasks and observers associated with all fml::MessageLoops.
This also wakes up the loop at the required times.
Definition at line 66 of file message_loop_task_queues.h.
void fml::MessageLoopTaskQueues::AddTaskObserver | ( | TaskQueueId | queue_id, |
intptr_t | key, | ||
const fml::closure & | callback | ||
) |
Definition at line 167 of file message_loop_task_queues.cc.
TaskQueueId fml::MessageLoopTaskQueues::CreateTaskQueue | ( | ) |
Definition at line 49 of file message_loop_task_queues.cc.
void fml::MessageLoopTaskQueues::Dispose | ( | TaskQueueId | queue_id | ) |
Definition at line 64 of file message_loop_task_queues.cc.
void fml::MessageLoopTaskQueues::DisposeTasks | ( | TaskQueueId | queue_id | ) |
Definition at line 76 of file message_loop_task_queues.cc.
|
static |
Definition at line 87 of file message_loop_task_queues.cc.
|
static |
Definition at line 44 of file message_loop_task_queues.cc.
fml::closure fml::MessageLoopTaskQueues::GetNextTaskToRun | ( | TaskQueueId | queue_id, |
fml::TimePoint | from_time | ||
) |
Definition at line 117 of file message_loop_task_queues.cc.
size_t fml::MessageLoopTaskQueues::GetNumPendingTasks | ( | TaskQueueId | queue_id | ) | const |
Definition at line 149 of file message_loop_task_queues.cc.
std::vector< fml::closure > fml::MessageLoopTaskQueues::GetObserversToNotify | ( | TaskQueueId | queue_id | ) | const |
Definition at line 181 of file message_loop_task_queues.cc.
std::set< TaskQueueId > fml::MessageLoopTaskQueues::GetSubsumedTaskQueueId | ( | TaskQueueId | owner | ) | const |
Definition at line 316 of file message_loop_task_queues.cc.
bool fml::MessageLoopTaskQueues::HasPendingTasks | ( | TaskQueueId | queue_id | ) | const |
Definition at line 112 of file message_loop_task_queues.cc.
bool fml::MessageLoopTaskQueues::Merge | ( | TaskQueueId | owner, |
TaskQueueId | subsumed | ||
) |
Definition at line 212 of file message_loop_task_queues.cc.
bool fml::MessageLoopTaskQueues::Owns | ( | TaskQueueId | owner, |
TaskQueueId | subsumed | ||
) | const |
Returns true
if owner
owns the subsumed
task queue.
Definition at line 306 of file message_loop_task_queues.cc.
void fml::MessageLoopTaskQueues::PauseSecondarySource | ( | TaskQueueId | queue_id | ) |
Definition at line 322 of file message_loop_task_queues.cc.
void fml::MessageLoopTaskQueues::RegisterTask | ( | TaskQueueId | queue_id, |
const fml::closure & | task, | ||
fml::TimePoint | target_time, | ||
fml::TaskSourceGrade | task_source_grade = fml::TaskSourceGrade::kUnspecified |
||
) |
Definition at line 91 of file message_loop_task_queues.cc.
void fml::MessageLoopTaskQueues::RemoveTaskObserver | ( | TaskQueueId | queue_id, |
intptr_t | key | ||
) |
Definition at line 175 of file message_loop_task_queues.cc.
void fml::MessageLoopTaskQueues::ResumeSecondarySource | ( | TaskQueueId | queue_id | ) |
Definition at line 327 of file message_loop_task_queues.cc.
void fml::MessageLoopTaskQueues::SetWakeable | ( | TaskQueueId | queue_id, |
fml::Wakeable * | wakeable | ||
) |
Definition at line 204 of file message_loop_task_queues.cc.
bool fml::MessageLoopTaskQueues::Unmerge | ( | TaskQueueId | owner, |
TaskQueueId | subsumed | ||
) |
Definition at line 263 of file message_loop_task_queues.cc.