#include <isolate_scope.h>
Definition at line 33 of file isolate_scope.h.
◆ 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();
29 if (previous_ == isolate_) {
30 return;
31 }
32 if (current) {
33 Dart_ExitIsolate();
34 }
35 if (previous_) {
36 Dart_EnterIsolate(previous_);
37 }
38}
#define FML_DCHECK(condition)
References FML_DCHECK.
The documentation for this class was generated from the following files: