Flutter Engine
The Flutter Engine
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 1828 of file isolate.h.

Constructor & Destructor Documentation

◆ NoActiveIsolateScope() [1/2]

dart::NoActiveIsolateScope::NoActiveIsolateScope ( )
inline

Definition at line 1830 of file isolate.h.

static Thread * Current()
Definition: thread.h:362

◆ NoActiveIsolateScope() [2/2]

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

Definition at line 1831 of file isolate.h.

1832 : StackResource(thread), thread_(thread) {
1833 outer_ = thread_->no_active_isolate_scope_;
1834 saved_isolate_ = thread_->isolate_;
1835
1836 thread_->no_active_isolate_scope_ = this;
1837 thread_->isolate_ = nullptr;
1838 }
ThreadState * thread() const
Definition: allocation.h:33
StackResource(ThreadState *thread)
Definition: allocation.h:25

◆ ~NoActiveIsolateScope()

dart::NoActiveIsolateScope::~NoActiveIsolateScope ( )
inline

Definition at line 1839 of file isolate.h.

1839 {
1840 ASSERT(thread_->isolate_ == nullptr);
1841 thread_->isolate_ = saved_isolate_;
1842 thread_->no_active_isolate_scope_ = outer_;
1843 }
#define ASSERT(E)

Friends And Related Function Documentation

◆ ActiveIsolateScope

friend class ActiveIsolateScope
friend

Definition at line 1846 of file isolate.h.


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