mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
Replace gettid() call with POSIX compliant getpid() call in 'Common.cpp'
This commit is contained in:
parent
08a62261e7
commit
6247061d09
@ -117,6 +117,8 @@ void RegisterThread(const std::string& str) {
|
||||
std::string ThreadId;
|
||||
#ifdef WIN32
|
||||
ThreadId = std::to_string(GetCurrentThreadId());
|
||||
#elif __APPLE__
|
||||
ThreadId = std::to_string(getpid());
|
||||
#else
|
||||
ThreadId = std::to_string(gettid());
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user