| 43 | } |
| 44 | |
| 45 | void executor_collection::shutdown_all() { |
| 46 | std::unique_lock<decltype(m_lock)> lock(m_lock); |
| 47 | for (auto& executor : m_executors) { |
| 48 | assert(static_cast<bool>(executor)); |
| 49 | executor->shutdown(); |
| 50 | } |
| 51 | |
| 52 | m_executors = {}; |
| 53 | } |
| 54 | |
| 55 | /* |
| 56 | runtime_options |