| Flutter iOS Embedder |

Public Member Functions | List of all members
flutter::IsolateScope Class Reference

`#include <isolate_scope.h>`

## Public Member Functions
| IsolateScope (const Isolate &isolate)
| ~IsolateScope ()

## Detailed Description

Definition at line 33 of file isolate_scope.h.

## Constructor & Destructor Documentation

## ◆ IsolateScope()

flutter::IsolateScope::IsolateScope | ( | const Isolate & | isolate | ) |
| explicit

Definition at line 14 of file isolate_scope.cc.

14 {
15 isolate_ = isolate.isolate_;
16 previous_ = Dart_CurrentIsolate();
17 if (previous_ == isolate_) {
18 return;
19 }
20 if (previous_) {
21 Dart_ExitIsolate();
22 }
23 Dart_EnterIsolate(isolate_);
24 };

## ◆ ~IsolateScope()

flutter::IsolateScope::~IsolateScope | ( |  | ) |

Definition at line 26 of file isolate_scope.cc.

26 {
27 Dart_Isolate current = Dart_CurrentIsolate();
28 FML_DCHECK(!current || current == isolate_);
29 if (previous_ == isolate_) {
30 return;
31 }
32 if (current) {
33 Dart_ExitIsolate();
34 }
35 if (previous_) {
36 Dart_EnterIsolate(previous_);
37 }
38 }

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

- shell/platform/common/isolate_scope.h
- shell/platform/common/isolate_scope.cc