RegisterThread: Add TID print (#63)

This commit is contained in:
Lion Kortlepel 2021-11-19 12:46:43 +01:00
parent 7079e80b71
commit b6fa3574fd
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -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;
}