We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38a75d3 commit 31731b1Copy full SHA for 31731b1
Modules/_threadmodule.c
@@ -71,14 +71,17 @@ get_thread_state_by_cls(PyTypeObject *cls)
71
return get_thread_state(module);
72
}
73
74
-
75
#ifdef MS_WINDOWS
76
typedef HRESULT (WINAPI *PF_GET_THREAD_DESCRIPTION)(HANDLE, PCWSTR*);
77
typedef HRESULT (WINAPI *PF_SET_THREAD_DESCRIPTION)(HANDLE, PCWSTR);
78
static PF_GET_THREAD_DESCRIPTION pGetThreadDescription = NULL;
79
static PF_SET_THREAD_DESCRIPTION pSetThreadDescription = NULL;
80
#endif
81
+#ifndef MS_WINDOWS
82
+static int _set_thread_name(const char *name);
83
+#endif
84
+
85
86
/*[clinic input]
87
module _thread
0 commit comments