Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
dart::NoActiveIsolateScope Class Reference

#include <isolate.h>

Inheritance diagram for dart::NoActiveIsolateScope:
dart::StackResource

Public Member Functions

 NoActiveIsolateScope ()
 
 NoActiveIsolateScope (Thread *thread)
 
 ~NoActiveIsolateScope ()
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 

Friends

class ActiveIsolateScope
 

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 1772 of file isolate.h.

Constructor & Destructor Documentation

◆ NoActiveIsolateScope() [1/2]

dart::NoActiveIsolateScope::NoActiveIsolateScope ( )
inline

Definition at line 1774 of file isolate.h.

◆ NoActiveIsolateScope() [2/2]

dart::NoActiveIsolateScope::NoActiveIsolateScope ( Thread thread)
inlineexplicit

Definition at line 1775 of file isolate.h.

1776 : StackResource(thread), thread_(thread) {
1777 outer_ = thread_->no_active_isolate_scope_;
1778 saved_isolate_ = thread_->isolate_;
1779
1780 thread_->no_active_isolate_scope_ = this;
1781 thread_->isolate_ = nullptr;
1782 }
ThreadState * thread() const
Definition allocation.h:33
StackResource(ThreadState *thread)
Definition allocation.h:25

◆ ~NoActiveIsolateScope()

dart::NoActiveIsolateScope::~NoActiveIsolateScope ( )
inline

Definition at line 1783 of file isolate.h.

1783 {
1784 ASSERT(thread_->isolate_ == nullptr);
1785 thread_->isolate_ = saved_isolate_;
1786 thread_->no_active_isolate_scope_ = outer_;
1787 }
#define ASSERT(E)

Friends And Related Symbol Documentation

◆ ActiveIsolateScope

friend class ActiveIsolateScope
friend

Definition at line 1790 of file isolate.h.


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