Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Protected Member Functions | List of all members
dart::SafepointOperationScope Class Reference

#include <safepoint.h>

Inheritance diagram for dart::SafepointOperationScope:
dart::ThreadStackResource dart::StackResource dart::DeoptSafepointOperationScope dart::GcSafepointOperationScope dart::ReloadSafepointOperationScope

Protected Member Functions

 SafepointOperationScope (Thread *T, SafepointLevel level)
 
 ~SafepointOperationScope ()
 

Additional Inherited Members

- Public Member Functions inherited from dart::ThreadStackResource
 ThreadStackResource (Thread *T)
 
 ~ThreadStackResource ()
 
Threadthread () const
 
Isolateisolate () const
 
IsolateGroupisolate_group () const
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 
- 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 20 of file safepoint.h.

Constructor & Destructor Documentation

◆ SafepointOperationScope()

dart::SafepointOperationScope::SafepointOperationScope ( Thread T,
SafepointLevel  level 
)
protected

Definition at line 15 of file safepoint.cc.

17 : ThreadStackResource(T), level_(level) {
18 ASSERT(T != nullptr && T->isolate_group() != nullptr);
19
20 auto handler = T->isolate_group()->safepoint_handler();
21 handler->SafepointThreads(T, level_);
22}
#define ASSERT(E)
#define T

◆ ~SafepointOperationScope()

dart::SafepointOperationScope::~SafepointOperationScope ( )
protected

Definition at line 24 of file safepoint.cc.

24 {
25 Thread* T = thread();
26 ASSERT(T != nullptr && T->isolate_group() != nullptr);
27
28 auto handler = T->isolate_group()->safepoint_handler();
29 handler->ResumeThreads(T, level_);
30}

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