gh-96125: Fix sys.thread_info.name on pthread platforms (GH-96126)

Automerge-Triggered-By: GH:tiran
This commit is contained in:
Christian Heimes 2022-08-19 21:41:25 +02:00 committed by GitHub
parent 5bfb3c372b
commit 822955c166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View file

@ -59,7 +59,7 @@ PyThread_init_thread(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"