Skip to content

Commit

Permalink
Update safe_env.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
karel-burda authored Nov 30, 2024
1 parent 8addbbb commit 119c98c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/safe_env/safe_env.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<typename F>
Expand Down

0 comments on commit 119c98c

Please sign in to comment.