Skip to content

Commit 31731b1

Browse files
committed
patch
1 parent 38a75d3 commit 31731b1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Modules/_threadmodule.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,17 @@ get_thread_state_by_cls(PyTypeObject *cls)
7171
return get_thread_state(module);
7272
}
7373

74-
7574
#ifdef MS_WINDOWS
7675
typedef HRESULT (WINAPI *PF_GET_THREAD_DESCRIPTION)(HANDLE, PCWSTR*);
7776
typedef HRESULT (WINAPI *PF_SET_THREAD_DESCRIPTION)(HANDLE, PCWSTR);
7877
static PF_GET_THREAD_DESCRIPTION pGetThreadDescription = NULL;
7978
static PF_SET_THREAD_DESCRIPTION pSetThreadDescription = NULL;
8079
#endif
8180

81+
#ifndef MS_WINDOWS
82+
static int _set_thread_name(const char *name);
83+
#endif
84+
8285

8386
/*[clinic input]
8487
module _thread

0 commit comments

Comments
 (0)