mirror of
https://github.com/python/cpython.git
synced 2025-12-07 13:50:06 +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
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue