set global thread pool.
| 74 | |
| 75 | // set global thread pool. |
| 76 | inline void init_thread_pool(size_t q_size, size_t thread_count) |
| 77 | { |
| 78 | auto tp = std::make_shared<details::thread_pool>(q_size, thread_count); |
| 79 | details::registry::instance().set_tp(std::move(tp)); |
| 80 | } |
| 81 | |
| 82 | // get the global thread pool. |
| 83 | inline std::shared_ptr<spdlog::details::thread_pool> thread_pool() |