From d2299fcc31cb0e8f94dd5c0d65b0d2faf2101ee1 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 6 Dec 2024 10:28:00 +0200 Subject: [PATCH] Minor cleanup --- src/details/context.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); }