https://github.com/python/cpython/commit/2e5e6fd380eb747bffeac151ca6f609779ef36f3
commit: 2e5e6fd380eb747bffeac151ca6f609779ef36f3
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2025-11-06T16:10:39+01:00
summary:
gh-134745: Use "pymutex" for sys.thread_info on Windows (#141140)
files:
M Python/thread.c
diff --git a/Python/thread.c b/Python/thread.c
index 18c4af7f634c75..0365f977d82b0e 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -334,14 +334,12 @@ PyThread_GetInfo(void)
#ifdef HAVE_PTHREAD_STUBS
value = Py_NewRef(Py_None);
-#elif defined(_POSIX_THREADS)
+#else
value = PyUnicode_FromString("pymutex");
if (value == NULL) {
Py_DECREF(threadinfo);
return NULL;
}
-#else
- value = Py_NewRef(Py_None);
#endif
PyStructSequence_SET_ITEM(threadinfo, pos++, value);
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]