mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
gh-96125: Fix sys.thread_info.name on pthread platforms (GH-96126) (#96128)
Automerge-Triggered-By: GH:tiran
(cherry picked from commit 822955c166
)
Co-authored-by: Christian Heimes <christian@python.org>
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
58e1fe24c7
commit
27f390bc30
3 changed files with 11 additions and 1 deletions
|
@ -97,7 +97,7 @@ _PyThread_debug_deprecation(void)
|
|||
# define PYTHREAD_NAME "pthread-stubs"
|
||||
# include "thread_pthread_stubs.h"
|
||||
#elif defined(_POSIX_THREADS)
|
||||
# if defined(__EMSCRIPTEN__) || !defined(__EMSCRIPTEN_PTHREADS__)
|
||||
# if defined(__EMSCRIPTEN__) && !defined(__EMSCRIPTEN_PTHREADS__)
|
||||
# define PYTHREAD_NAME "pthread-stubs"
|
||||
# else
|
||||
# define PYTHREAD_NAME "pthread"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue