Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Python/thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,20 @@ PyThread_GetInfo(void)

#ifdef HAVE_PTHREAD_STUBS
value = Py_NewRef(Py_None);
#else
#ifdef MS_WINDOWS
value = Py_NewRef(Py_None);
#elif defined(__wasi__)
value = Py_NewRef(Py_None);
#else
value = PyUnicode_FromString("pymutex");
if (value == NULL) {
Py_DECREF(threadinfo);
return NULL;
}
#endif
#endif

PyStructSequence_SET_ITEM(threadinfo, pos++, value);

#if (defined(_POSIX_THREADS) && defined(HAVE_CONFSTR) \
Expand All @@ -361,7 +368,6 @@ PyThread_GetInfo(void)
return threadinfo;
}


void
_PyThread_FiniType(PyInterpreterState *interp)
{
Expand Down
Loading