|
C++ Concurrency Sandbox
|
A simulated CPU-intensive workload functor. More...
Public Member Functions | |
| void | operator() () const |
| Executes the simulated work by sleeping the worker thread. | |
Public Attributes | |
| int | duration_ms |
| Time in milliseconds the task will "occupy" the worker. | |
A simulated CPU-intensive workload functor.
Definition at line 177 of file AgingPriority.cpp.
|
inline |
Executes the simulated work by sleeping the worker thread.
Definition at line 183 of file AgingPriority.cpp.
References duration_ms.
| int HeavyTask::duration_ms |
Time in milliseconds the task will "occupy" the worker.
Definition at line 178 of file AgingPriority.cpp.
Referenced by operator()().