#include <platform_isolate.h>
Definition at line 12 of file platform_isolate.h.
◆ IsRunningOnPlatformThread()
bool flutter::PlatformIsolateNativeApi::IsRunningOnPlatformThread |
( |
| ) |
|
|
static |
Definition at line 36 of file platform_isolate.cc.
36 {
40 current_state->GetTaskRunners().GetPlatformTaskRunner();
41 if (!platform_task_runner) {
42 return false;
43 }
45}
static UIDartState * Current()
virtual bool RunsTasksOnCurrentThread()
#define FML_DCHECK(condition)
◆ Spawn()
void flutter::PlatformIsolateNativeApi::Spawn |
( |
Dart_Handle |
entry_point | ) |
|
|
static |
Definition at line 16 of file platform_isolate.cc.
16 {
19 if (!current_state->IsRootIsolate()) {
20
23 "PlatformIsolates can only be spawned on the root isolate."));
24 }
25
26 char*
error =
nullptr;
27 current_state->CreatePlatformIsolate(entry_point, &
error);
33 }
34}
DART_EXPORT void Dart_EnterScope(void)
struct _Dart_Handle * Dart_Handle
DART_EXPORT Dart_Handle Dart_ThrowException(Dart_Handle exception)
const uint8_t uint32_t uint32_t GError ** error
Dart_Handle ToDart(const T &object)
The documentation for this class was generated from the following files: