mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-02 15:55:30 +00:00
RegisterThread: Add TID print (#63)
This commit is contained in:
parent
7079e80b71
commit
b6fa3574fd
@ -118,9 +118,7 @@ std::string ThreadName(bool DebugModeOverride) {
|
||||
}
|
||||
|
||||
void RegisterThread(const std::string& str) {
|
||||
#if defined(__linux)
|
||||
beammp_trace(str + " is " + std::to_string(gettid()));
|
||||
#endif // __linux
|
||||
beammp_debug("Thread \"" + str + "\" is TID " + std::to_string(gettid()));
|
||||
auto Lock = std::unique_lock(ThreadNameMapMutex);
|
||||
threadNameMap[std::this_thread::get_id()] = str;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user