Definition at line 35 of file thread_pool_test.cc.
◆ 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)
◆ 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: