diff --git a/include/spdlog/details/mpmc_blocking_q.h b/include/spdlog/details/mpmc_blocking_q.h index d4a8a41c..860fdc67 100644 --- a/include/spdlog/details/mpmc_blocking_q.h +++ b/include/spdlog/details/mpmc_blocking_q.h @@ -19,11 +19,11 @@ namespace spdlog { namespace details { template -class mpmc_bounded_queue +class mpmc_blocking_queue { public: using item_type = T; - explicit mpmc_bounded_queue(size_t max_items) + explicit mpmc_blocking_queue(size_t max_items) : max_items_(max_items) { } diff --git a/include/spdlog/details/thread_pool.h b/include/spdlog/details/thread_pool.h index b5e52939..46f935ee 100644 --- a/include/spdlog/details/thread_pool.h +++ b/include/spdlog/details/thread_pool.h @@ -83,7 +83,7 @@ namespace spdlog { { public: using item_type = async_msg; - using q_type = details::mpmc_bounded_queue; + using q_type = details::mpmc_blocking_queue; using clock_type = std::chrono::steady_clock; thread_pool(size_t q_size_bytes, size_t threads_n)