Common: Make threadNameMap static

good practice
This commit is contained in:
Lion Kortlepel 2021-08-17 13:56:26 +02:00 committed by Lion
parent fd6234bd21
commit 7d137eb496

View File

@ -126,8 +126,8 @@ std::string DeComp(std::string Compressed) {
// thread name stuff
std::map<std::thread::id, std::string> threadNameMap;
std::mutex ThreadNameMapMutex;
static std::map<std::thread::id, std::string> threadNameMap {};
static std::mutex ThreadNameMapMutex {};
std::string ThreadName(bool DebugModeOverride) {
auto Lock = std::unique_lock(ThreadNameMapMutex);