@@ -70,14 +70,14 @@ current_fast_clear(_PyRuntimeState *runtime)
7070static int
7171current_tss_initialized (_PyRuntimeState * runtime )
7272{
73- return PyThread_tss_is_created (& runtime -> gilstate . autoTSSkey );
73+ return PyThread_tss_is_created (& runtime -> autoTSSkey );
7474}
7575
7676static PyStatus
7777current_tss_init (_PyRuntimeState * runtime )
7878{
7979 assert (!current_tss_initialized (runtime ));
80- if (PyThread_tss_create (& runtime -> gilstate . autoTSSkey ) != 0 ) {
80+ if (PyThread_tss_create (& runtime -> autoTSSkey ) != 0 ) {
8181 return _PyStatus_NO_MEMORY ();
8282 }
8383 return _PyStatus_OK ();
@@ -87,22 +87,22 @@ static void
8787current_tss_fini (_PyRuntimeState * runtime )
8888{
8989 assert (current_tss_initialized (runtime ));
90- PyThread_tss_delete (& runtime -> gilstate . autoTSSkey );
90+ PyThread_tss_delete (& runtime -> autoTSSkey );
9191}
9292
9393static inline PyThreadState *
9494current_tss_get (_PyRuntimeState * runtime )
9595{
9696 assert (current_tss_initialized (runtime ));
97- return (PyThreadState * )PyThread_tss_get (& runtime -> gilstate . autoTSSkey );
97+ return (PyThreadState * )PyThread_tss_get (& runtime -> autoTSSkey );
9898}
9999
100100static inline int
101101_current_tss_set (_PyRuntimeState * runtime , PyThreadState * tstate )
102102{
103103 assert (tstate != NULL );
104104 assert (current_tss_initialized (runtime ));
105- return PyThread_tss_set (& runtime -> gilstate . autoTSSkey , (void * )tstate );
105+ return PyThread_tss_set (& runtime -> autoTSSkey , (void * )tstate );
106106}
107107static inline void
108108current_tss_set (_PyRuntimeState * runtime , PyThreadState * tstate )
@@ -116,7 +116,7 @@ static inline void
116116current_tss_clear (_PyRuntimeState * runtime )
117117{
118118 assert (current_tss_initialized (runtime ));
119- if (PyThread_tss_set (& runtime -> gilstate . autoTSSkey , NULL ) != 0 ) {
119+ if (PyThread_tss_set (& runtime -> autoTSSkey , NULL ) != 0 ) {
120120 Py_FatalError ("failed to clear current tstate (TSS)" );
121121 }
122122}
0 commit comments