File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 1818# include <signal.h> // SIGINT
1919#endif
2020
21-
2221// ThreadError is just an alias to PyExc_RuntimeError
2322#define ThreadError PyExc_RuntimeError
2423
@@ -59,14 +58,6 @@ get_thread_state_by_cls(PyTypeObject *cls)
5958 return get_thread_state (module );
6059}
6160
62- static inline thread_module_state *
63- find_state_by_type (PyTypeObject * tp )
64- {
65- PyObject * mod = PyType_GetModuleByDef (tp , & thread_module );
66- assert (mod != NULL );
67- return get_thread_state (mod );
68- }
69-
7061
7162#ifdef MS_WINDOWS
7263typedef HRESULT (WINAPI * PF_GET_THREAD_DESCRIPTION )(HANDLE , PCWSTR * );
@@ -78,12 +69,12 @@ static PF_SET_THREAD_DESCRIPTION pSetThreadDescription = NULL;
7869
7970/*[clinic input]
8071module _thread
81- class _thread.iter_locked "iter_locked_object *" "find_state_by_type(type )->iter_locked_type"
72+ class _thread.iter_locked "iter_locked_object *" "clinic_state( )->iter_locked_type"
8273class _thread.lock "lockobject *" "clinic_state()->lock_type"
8374class _thread.RLock "rlockobject *" "clinic_state()->rlock_type"
8475
8576[clinic start generated code]*/
86- /*[clinic end generated code: output=da39a3ee5e6b4b0d input=6afac42991bc8469 ]*/
77+ /*[clinic end generated code: output=da39a3ee5e6b4b0d input=1a4bf65233f83eae ]*/
8778
8879#define clinic_state () get_thread_state_by_cls(type)
8980#include "clinic/_threadmodule.c.h"
You can’t perform that action at this time.
0 commit comments