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

Public Member Functions

 BackgroundGCTask (IsolateGroup *isolate_group, Monitor *monitor, bool *done)
 
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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from dart::ThreadPool::Task
 Task ()
 

Detailed Description

Definition at line 2562 of file dart_api_impl_test.cc.

Constructor & Destructor Documentation

◆ BackgroundGCTask()

dart::BackgroundGCTask::BackgroundGCTask ( IsolateGroup isolate_group,
Monitor monitor,
bool *  done 
)
inline

Definition at line 2564 of file dart_api_impl_test.cc.

2565 : isolate_group_(isolate_group), monitor_(monitor), done_(done) {}
static void done(const char *config, const char *src, const char *srcOptions, const char *name)
Definition: DM.cpp:263

Member Function Documentation

◆ Run()

virtual void dart::BackgroundGCTask::Run ( )
inlinevirtual

Implements dart::ThreadPool::Task.

Definition at line 2566 of file dart_api_impl_test.cc.

2566 {
2567 const bool kBypassSafepoint = false;
2569 kBypassSafepoint);
2570 for (intptr_t i = 0; i < 10; i++) {
2572 }
2573 Thread::ExitIsolateGroupAsHelper(kBypassSafepoint);
2574 {
2575 MonitorLocker ml(monitor_);
2576 *done_ = true;
2577 ml.Notify();
2578 }
2579 }
@ kUnknownTask
Definition: thread.h:346
static void ExitIsolateGroupAsHelper(bool bypass_safepoint)
Definition: thread.cc:499
static bool EnterIsolateGroupAsHelper(IsolateGroup *isolate_group, TaskKind kind, bool bypass_safepoint)
Definition: thread.cc:481
static void CollectAllGarbage(Thread *thread, JSONStream *js)
Definition: service.cc:4559

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