diff --git a/include/spdlog/async.h b/include/spdlog/async.h index 9516400c..833be4fb 100644 --- a/include/spdlog/async.h +++ b/include/spdlog/async.h @@ -40,6 +40,7 @@ struct async_factory_impl auto ®istry_inst = details::registry::instance(); // create global thread pool if not already exists.. + auto &mutex = registry_inst.tp_mutex(); std::lock_guard tp_lock(mutex); auto tp = registry_inst.get_tp();