Replace gettid() call with POSIX compliant getpid() call in 'Common.cpp'

This commit is contained in:
Lucca Jiménez Könings 2021-11-25 01:06:34 +01:00 committed by Lion
parent 08a62261e7
commit 6247061d09

View File

@ -117,6 +117,8 @@ void RegisterThread(const std::string& str) {
std::string ThreadId; std::string ThreadId;
#ifdef WIN32 #ifdef WIN32
ThreadId = std::to_string(GetCurrentThreadId()); ThreadId = std::to_string(GetCurrentThreadId());
#elif __APPLE__
ThreadId = std::to_string(getpid());
#else #else
ThreadId = std::to_string(gettid()); ThreadId = std::to_string(gettid());
#endif #endif