| 92 | // ---------------------------------------------------------------------------------------- |
| 93 | |
| 94 | void thread_pool_implementation:: |
| 95 | wait_for_task ( |
| 96 | uint64 task_id |
| 97 | ) const |
| 98 | { |
| 99 | auto_mutex M(m); |
| 100 | if (tasks.size() != 0) |
| 101 | { |
| 102 | const unsigned long idx = task_id_to_index(task_id); |
| 103 | while (tasks[idx].task_id == task_id) |
| 104 | task_done_signaler.wait(); |
| 105 | |
| 106 | for (auto&& task : tasks) |
| 107 | task.propagate_exception(); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | // ---------------------------------------------------------------------------------------- |
| 112 |
nothing calls this directly
no test coverage detected