mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
write thread ids to file
This commit is contained in:
parent
66d4e34a75
commit
a7db41ebaa
@ -121,7 +121,8 @@ void RegisterThread(const std::string& str) {
|
||||
ThreadId = std::to_string(gettid());
|
||||
#endif
|
||||
if (Application::Settings.DebugModeEnabled) {
|
||||
std::cout << ("Thread \"" + str + "\" is TID " + ThreadId) << std::endl;
|
||||
std::ofstream ThreadFile("Threads.log", std::ios::app);
|
||||
ThreadFile << ("Thread \"" + str + "\" is TID " + ThreadId) << std::endl;
|
||||
}
|
||||
auto Lock = std::unique_lock(ThreadNameMapMutex);
|
||||
threadNameMap[std::this_thread::get_id()] = str;
|
||||
|
Loading…
x
Reference in New Issue
Block a user