mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-04 00:36:14 +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;
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user