Definition at line 101 of file thread_pool_test.cc.
◆ SleepTask()
dart::SleepTask::SleepTask |
( |
Monitor * |
sync, |
|
|
int * |
started_count, |
|
|
int * |
slept_count, |
|
|
int |
millis |
|
) |
| |
|
inline |
Definition at line 103 of file thread_pool_test.cc.
104 : sync_(sync),
105 started_count_(started_count),
106 slept_count_(slept_count),
107 millis_(millis) {}
◆ Run()
virtual void dart::SleepTask::Run |
( |
| ) |
|
|
inlinevirtual |
Implements dart::ThreadPool::Task.
Definition at line 109 of file thread_pool_test.cc.
109 {
110 {
111 MonitorLocker ml(sync_);
112 *started_count_ = *started_count_ + 1;
113 ml.Notify();
114 }
115
116
118 {
119 MonitorLocker ml(sync_);
120 *slept_count_ = *slept_count_ + 1;
121
122
123 }
124 }
static void Sleep(int64_t millis)
The documentation for this class was generated from the following file: