Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
dart::ActiveIsolateScope Class Reference

#include <isolate.h>

Inheritance diagram for dart::ActiveIsolateScope:
dart::StackResource

Public Member Functions

 ActiveIsolateScope (Thread *thread)
 
 ActiveIsolateScope (Thread *thread, Isolate *isolate)
 
 ~ActiveIsolateScope ()
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::StackResource
static void Unwind (ThreadState *thread)
 
static void UnwindAbove (ThreadState *thread, StackResource *new_top)
 

Detailed Description

Definition at line 1853 of file isolate.h.

Constructor & Destructor Documentation

◆ ActiveIsolateScope() [1/2]

dart::ActiveIsolateScope::ActiveIsolateScope ( Thread thread)
inlineexplicit

Definition at line 1855 of file isolate.h.

1857 thread->no_active_isolate_scope_->saved_isolate_) {}
ActiveIsolateScope(Thread *thread)
Definition: isolate.h:1855
ThreadState * thread() const
Definition: allocation.h:33

◆ ActiveIsolateScope() [2/2]

dart::ActiveIsolateScope::ActiveIsolateScope ( Thread thread,
Isolate isolate 
)
inline

Definition at line 1859 of file isolate.h.

1860 : StackResource(thread), thread_(thread) {
1861 RELEASE_ASSERT(thread->isolate() == nullptr);
1862 thread_->isolate_ = isolate;
1863 }
#define RELEASE_ASSERT(cond)
Definition: assert.h:327
StackResource(ThreadState *thread)
Definition: allocation.h:25

◆ ~ActiveIsolateScope()

dart::ActiveIsolateScope::~ActiveIsolateScope ( )
inline

Definition at line 1864 of file isolate.h.

1864 {
1865 ASSERT(thread_->isolate_ != nullptr);
1866 thread_->isolate_ = nullptr;
1867 }
#define ASSERT(E)

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