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

Public Types

enum  State { kEnterSafepoint = StateMachineTask::kNext , kInsideSafepoint , kPleaseExitSafepoint , kExitedSafepoint }
 
- Public Types inherited from dart::StateMachineTask
enum  State {
  kInitialized = 0 , kEntered , kPleaseExit , kExited ,
  kNext
}
 

Public Member Functions

 WaiterTask (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 218 of file safepoint_test.cc.

Member Enumeration Documentation

◆ State

Enumerator
kEnterSafepoint 
kInsideSafepoint 
kPleaseExitSafepoint 
kExitedSafepoint 

Definition at line 220 of file safepoint_test.cc.

Constructor & Destructor Documentation

◆ WaiterTask()

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

Definition at line 227 of file safepoint_test.cc.

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

Member Function Documentation

◆ RunInternal()

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

Implements dart::StateMachineTask.

Definition at line 231 of file safepoint_test.cc.

231 {
232 data_->WaitUntil(kEnterSafepoint);
234 data_->MarkAndNotify(kInsideSafepoint);
235 data_->WaitUntil(kPleaseExitSafepoint);
237 data_->MarkAndNotify(kExitedSafepoint);
238 }
std::shared_ptr< Data > data_
void ExitSafepoint()
Definition: thread.h:1094
void EnterSafepoint()
Definition: thread.h:1076

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