mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 00:04:49 +02:00
Implement thread debug id with the syscall instead of gettid().
See #14545
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user