gh-134745: Use "pymutex" for sys.thread_info on Windows (#141140)

This commit is contained in:
Victor Stinner
2025-11-06 16:10:39 +01:00
committed by GitHub
parent bcc524f82d
commit 2e5e6fd380

View File

@@ -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);