From 7d137eb496a32c78a6cf56ae05f9bc7aefda8e70 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 17 Aug 2021 13:56:26 +0200 Subject: [PATCH] Common: Make threadNameMap static good practice --- src/Common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common.cpp b/src/Common.cpp index 3257eea..72ca0eb 100644 --- a/src/Common.cpp +++ b/src/Common.cpp @@ -126,8 +126,8 @@ std::string DeComp(std::string Compressed) { // thread name stuff -std::map threadNameMap; -std::mutex ThreadNameMapMutex; +static std::map threadNameMap {}; +static std::mutex ThreadNameMapMutex {}; std::string ThreadName(bool DebugModeOverride) { auto Lock = std::unique_lock(ThreadNameMapMutex);