From 15a2373f04d9495ff4cfbcc2f4593cb48dc8d15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 21 Jun 2021 01:26:47 +0200 Subject: [PATCH] Implement thread debug id with the syscall instead of gettid(). See #14545 --- Common/Thread/ThreadUtil.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Common/Thread/ThreadUtil.cpp b/Common/Thread/ThreadUtil.cpp index 3b4137ea99..950ef3042a 100644 --- a/Common/Thread/ThreadUtil.cpp +++ b/Common/Thread/ThreadUtil.cpp @@ -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