Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6ac254 commit c744dbeCopy full SHA for c744dbe
1 file changed
Include/object.h
@@ -279,6 +279,10 @@ _Py_ThreadId(void)
279
__asm__ ("" : "=r" (tp));
280
tid = tp;
281
#endif
282
+#elif defined(__s390__) && defined(__GNUC__)
283
+ // Both GCC and Clang have supported __builtin_thread_pointer
284
+ // for s390 from long time ago.
285
+ tid = (uintptr_t)__builtin_thread_pointer();
286
#else
287
# error "define _Py_ThreadId for this platform"
288
0 commit comments