diff --git a/include/safe_env/safe_env.hpp b/include/safe_env/safe_env.hpp index cef96f9..385a6a9 100644 --- a/include/safe_env/safe_env.hpp +++ b/include/safe_env/safe_env.hpp @@ -28,6 +28,8 @@ inline void unsetenv(const std::string& name); namespace detail { +// due to performance reasons, we don't want to make this a static local variable +// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables) inline std::shared_mutex mtx; template