| 56 | struct LargeTask { |
| 57 | template <class Pool> |
| 58 | void execute(std::atomic<std::size_t>& tasks_done, Pool&) { |
| 59 | constexpr unsigned int duration_min = 1000; |
| 60 | constexpr unsigned int duration_max = 3000; |
| 61 | |
| 62 | sleep::spinlock(std::chrono::microseconds(random::uniform_uint(duration_min, duration_max))); |
| 63 | |
| 64 | ++tasks_done; |
| 65 | } |
| 66 | }; |
| 67 | |
| 68 | struct ShallowRecursiveTask { |
nothing calls this directly
no test coverage detected