mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-134745: Use "pymutex" for sys.thread_info on Windows (#141140)
This commit is contained in:
parent
bcc524f82d
commit
2e5e6fd380
1 changed files with 1 additions and 3 deletions
|
|
@ -334,14 +334,12 @@ PyThread_GetInfo(void)
|
||||||
|
|
||||||
#ifdef HAVE_PTHREAD_STUBS
|
#ifdef HAVE_PTHREAD_STUBS
|
||||||
value = Py_NewRef(Py_None);
|
value = Py_NewRef(Py_None);
|
||||||
#elif defined(_POSIX_THREADS)
|
#else
|
||||||
value = PyUnicode_FromString("pymutex");
|
value = PyUnicode_FromString("pymutex");
|
||||||
if (value == NULL) {
|
if (value == NULL) {
|
||||||
Py_DECREF(threadinfo);
|
Py_DECREF(threadinfo);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
value = Py_NewRef(Py_None);
|
|
||||||
#endif
|
#endif
|
||||||
PyStructSequence_SET_ITEM(threadinfo, pos++, value);
|
PyStructSequence_SET_ITEM(threadinfo, pos++, value);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue