diff --git a/src/details/context.cpp b/src/details/context.cpp index b177c514..4a627a68 100644 --- a/src/details/context.cpp +++ b/src/details/context.cpp @@ -59,18 +59,18 @@ void context::set_default_logger(std::shared_ptr new_default_logger) { } void context::set_tp(std::shared_ptr tp) { - std::lock_guard lock(tp_mutex_); + std::lock_guard lock(tp_mutex_); tp_ = std::move(tp); } std::shared_ptr context::get_tp() { - std::lock_guard lock(tp_mutex_); + std::lock_guard lock(tp_mutex_); return tp_; } // clean all resources and threads started by the registry void context::shutdown() { - std::lock_guard lock(tp_mutex_); + std::lock_guard lock(tp_mutex_); tp_.reset(); }