Flutter Engine
 
Loading...
Searching...
No Matches
flutter::Isolate Class Reference

#include <isolate_scope.h>

Public Member Functions

 ~Isolate ()=default
 

Static Public Member Functions

static Isolate Current ()
 

Friends

class IsolateScope
 

Detailed Description

This class is a thin wrapper around dart isolate. It can be used as argument to IsolateScope constructor to enter and exit the isolate.

Definition at line 15 of file isolate_scope.h.

Constructor & Destructor Documentation

◆ ~Isolate()

flutter::Isolate::~Isolate ( )
default

References FML_DCHECK.

Member Function Documentation

◆ Current()

Isolate flutter::Isolate::Current ( )
static

Retrieve the current Dart Isolate. If no isolate is current, this results in a crash.

Definition at line 9 of file isolate_scope.cc.

9 {
10 Dart_Isolate isolate = Dart_CurrentIsolate();
11 return Isolate(isolate);
12}

Referenced by fl_window_monitor_new(), flutter::WindowManager::Initialize(), flutter::testing::FlutterWindowControllerTest::SetUp(), and flutter::testing::TEST_F().

Friends And Related Symbol Documentation

◆ IsolateScope

friend class IsolateScope
friend

Definition at line 28 of file isolate_scope.h.


The documentation for this class was generated from the following files: