mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Implement thread debug id with the syscall instead of gettid().
See #14545
This commit is contained in:
parent
efb32b5694
commit
15a2373f04
1 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,9 @@ int GetCurrentThreadIdForDebug() {
|
||||||
pthread_threadid_np(NULL, &tid);
|
pthread_threadid_np(NULL, &tid);
|
||||||
return (int)tid;
|
return (int)tid;
|
||||||
#elif PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(LINUX)
|
#elif PPSSPP_PLATFORM(ANDROID) || PPSSPP_PLATFORM(LINUX)
|
||||||
return (int)gettid();
|
// See issue 14545
|
||||||
|
return (int)syscall(__NR_gettid);
|
||||||
|
// return (int)gettid();
|
||||||
#else
|
#else
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue