Implement thread debug id with the syscall instead of gettid().

See #14545
This commit is contained in:
Henrik Rydgård 2021-06-21 01:26:47 +02:00
parent efb32b5694
commit 15a2373f04

View file

@ -149,7 +149,9 @@ int GetCurrentThreadIdForDebug() {
pthread_threadid_np(NULL, &tid);
return (int)tid;
#elif PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(LINUX)
return (int)gettid();
// See issue 14545
return (int)syscall(__NR_gettid);
// return (int)gettid();
#else
return 1;
#endif