#include <dart_microtask_queue.h>
Definition at line 16 of file dart_microtask_queue.h.
◆ DartMicrotaskQueue()
tonic::DartMicrotaskQueue::DartMicrotaskQueue |
( |
| ) |
|
◆ ~DartMicrotaskQueue()
tonic::DartMicrotaskQueue::~DartMicrotaskQueue |
( |
| ) |
|
|
default |
◆ Destroy()
void tonic::DartMicrotaskQueue::Destroy |
( |
| ) |
|
Definition at line 97 of file dart_microtask_queue.cc.
97 {
99 SetQueue(nullptr);
100 delete this;
101}
static DartMicrotaskQueue * GetForCurrentThread()
◆ GetForCurrentThread()
◆ GetLastError()
◆ HasMicrotasks()
bool tonic::DartMicrotaskQueue::HasMicrotasks |
( |
| ) |
const |
|
inline |
◆ RunMicrotasks()
void tonic::DartMicrotaskQueue::RunMicrotasks |
( |
| ) |
|
Definition at line 70 of file dart_microtask_queue.cc.
70 {
71 while (!queue_.empty()) {
75 if (
auto dart_state =
callback.dart_state().lock()) {
76 DartState::Scope dart_scope(dart_state.get());
78
79
80
84 }
88 }
89 dart_state->MessageEpilogue(
result);
91 return;
92 }
93 }
94 }
95}
void swap(sk_sp< T > &a, sk_sp< T > &b)
struct _Dart_Handle * Dart_Handle
DART_EXPORT bool Dart_IsFatalError(Dart_Handle handle)
DART_EXPORT DART_WARN_UNUSED_RESULT Dart_Handle Dart_InvokeClosure(Dart_Handle closure, int number_of_arguments, Dart_Handle *arguments)
DART_EXPORT Dart_Isolate Dart_CurrentIsolate(void)
DART_EXPORT bool Dart_IsError(Dart_Handle handle)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
const uint8_t uint32_t uint32_t GError ** error
DartErrorHandleType GetErrorHandleType(Dart_Handle handle)
bool CheckAndHandleError(Dart_Handle handle)
◆ ScheduleMicrotask()
void tonic::DartMicrotaskQueue::ScheduleMicrotask |
( |
Dart_Handle |
callback | ) |
|
◆ StartForCurrentThread()
void tonic::DartMicrotaskQueue::StartForCurrentThread |
( |
| ) |
|
|
static |
The documentation for this class was generated from the following files: