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

Public Member Functions

 TestTask (Monitor *sync, 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 35 of file thread_pool_test.cc.

Constructor & Destructor Documentation

◆ TestTask()

dart::TestTask::TestTask ( Monitor sync,
bool *  done 
)
inline

Definition at line 37 of file thread_pool_test.cc.

37: sync_(sync), 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::TestTask::Run ( )
inlinevirtual

Implements dart::ThreadPool::Task.

Definition at line 43 of file thread_pool_test.cc.

43 {
44 {
45 MonitorLocker ml(sync_);
46 while (*done_) {
47 ml.Wait();
48 }
49 }
50 MonitorLocker ml(sync_);
51 *done_ = true;
52 ml.Notify();
53 }

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