| 58 | // Helper to unwrap a valid pool submission |
| 59 | template <typename F> |
| 60 | [[nodiscard]] auto Submit(ThreadPool& pool, F&& fn) |
| 61 | { |
| 62 | return std::move(*Assert(pool.Submit(std::forward<F>(fn)))); |
| 63 | } |
| 64 | |
| 65 | // Block a number of worker threads by submitting tasks that wait on `release_sem`. |
| 66 | // Returns the futures of the blocking tasks, ensuring all have started and are waiting. |
no outgoing calls
no test coverage detected