mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-06-17 22:23:03 +00:00
print always
This commit is contained in:
+3
-1
@@ -120,7 +120,9 @@ void RegisterThread(const std::string& str) {
|
|||||||
#else
|
#else
|
||||||
ThreadId = std::to_string(gettid());
|
ThreadId = std::to_string(gettid());
|
||||||
#endif
|
#endif
|
||||||
beammp_debug("Thread \"" + str + "\" is TID " + ThreadId);
|
if (Application::Settings.DebugModeEnabled) {
|
||||||
|
std::cout << ("Thread \"" + str + "\" is TID " + ThreadId) << std::endl;
|
||||||
|
}
|
||||||
auto Lock = std::unique_lock(ThreadNameMapMutex);
|
auto Lock = std::unique_lock(ThreadNameMapMutex);
|
||||||
threadNameMap[std::this_thread::get_id()] = str;
|
threadNameMap[std::this_thread::get_id()] = str;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user