| 34 | ); |
| 35 | } |
| 36 | ~ThreadQueue() |
| 37 | { |
| 38 | { |
| 39 | std::unique_lock<std::mutex> lock(mutex); |
| 40 | stop = true; |
| 41 | } |
| 42 | condition.notify_all(); |
| 43 | thread.join(); |
| 44 | } |
| 45 | template<class Fn, class... Args> |
| 46 | std::future<std::invoke_result_t<Fn, Args...>> enqueue(Fn&& fn, Args&&... args) |
| 47 | { |
nothing calls this directly
no outgoing calls
no test coverage detected