Flutter Engine
The Flutter Engine
Public Types | Public Member Functions | Protected Member Functions | List of all members
dart::LongDeoptTask Class Reference
Inheritance diagram for dart::LongDeoptTask:
dart::StateMachineTask dart::ThreadPool::Task dart::IntrusiveDListEntry< Task >

Public Types

enum  State { kStartDeoptOperation = StateMachineTask::kNext , kInsideDeoptOperation , kFinishDeoptOperation , kFinishedDeoptOperation }
 
- Public Types inherited from dart::StateMachineTask
enum  State {
  kInitialized = 0 , kEntered , kPleaseExit , kExited ,
  kNext
}
 

Public Member Functions

 LongDeoptTask (std::shared_ptr< Data > data)
 
- Public Member Functions inherited from dart::StateMachineTask
 StateMachineTask (std::shared_ptr< Data > data)
 
virtual void Run ()
 
- Public Member Functions inherited from dart::ThreadPool::Task
virtual ~Task ()
 
virtual void Run ()=0
 
- Public Member Functions inherited from dart::IntrusiveDListEntry< Task >
 IntrusiveDListEntry ()
 
 ~IntrusiveDListEntry ()
 

Protected Member Functions

virtual void RunInternal ()
 
virtual void RunInternal ()=0
 
- Protected Member Functions inherited from dart::ThreadPool::Task
 Task ()
 

Additional Inherited Members

- Protected Attributes inherited from dart::StateMachineTask
std::shared_ptr< Datadata_
 
Threadthread_ = nullptr
 

Detailed Description

Definition at line 194 of file safepoint_test.cc.

Member Enumeration Documentation

◆ State

Enumerator
kStartDeoptOperation 
kInsideDeoptOperation 
kFinishDeoptOperation 
kFinishedDeoptOperation 

Definition at line 196 of file safepoint_test.cc.

Constructor & Destructor Documentation

◆ LongDeoptTask()

dart::LongDeoptTask::LongDeoptTask ( std::shared_ptr< Data data)
inlineexplicit

Definition at line 203 of file safepoint_test.cc.

204 : StateMachineTask(std::move(data)) {}
StateMachineTask(std::shared_ptr< Data > data)
static int8_t data[kExtLength]

Member Function Documentation

◆ RunInternal()

virtual void dart::LongDeoptTask::RunInternal ( )
inlineprotectedvirtual

Implements dart::StateMachineTask.

Definition at line 207 of file safepoint_test.cc.

207 {
208 data_->WaitUntil(kStartDeoptOperation);
209 {
210 DeoptSafepointOperationScope safepoint_operation(thread_);
211 data_->MarkAndNotify(kInsideDeoptOperation);
212 data_->WaitUntil(kFinishDeoptOperation);
213 }
214 data_->MarkAndNotify(kFinishedDeoptOperation);
215 }
std::shared_ptr< Data > data_

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