mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-02 15:55:30 +00:00
Common: Make threadNameMap static
good practice
This commit is contained in:
parent
fd6234bd21
commit
7d137eb496
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user