@@ -70,14 +70,14 @@ current_fast_clear(_PyRuntimeState *runtime)
70
70
static int
71
71
current_tss_initialized (_PyRuntimeState * runtime )
72
72
{
73
- return PyThread_tss_is_created (& runtime -> gilstate . autoTSSkey );
73
+ return PyThread_tss_is_created (& runtime -> autoTSSkey );
74
74
}
75
75
76
76
static PyStatus
77
77
current_tss_init (_PyRuntimeState * runtime )
78
78
{
79
79
assert (!current_tss_initialized (runtime ));
80
- if (PyThread_tss_create (& runtime -> gilstate . autoTSSkey ) != 0 ) {
80
+ if (PyThread_tss_create (& runtime -> autoTSSkey ) != 0 ) {
81
81
return _PyStatus_NO_MEMORY ();
82
82
}
83
83
return _PyStatus_OK ();
@@ -87,22 +87,22 @@ static void
87
87
current_tss_fini (_PyRuntimeState * runtime )
88
88
{
89
89
assert (current_tss_initialized (runtime ));
90
- PyThread_tss_delete (& runtime -> gilstate . autoTSSkey );
90
+ PyThread_tss_delete (& runtime -> autoTSSkey );
91
91
}
92
92
93
93
static inline PyThreadState *
94
94
current_tss_get (_PyRuntimeState * runtime )
95
95
{
96
96
assert (current_tss_initialized (runtime ));
97
- return (PyThreadState * )PyThread_tss_get (& runtime -> gilstate . autoTSSkey );
97
+ return (PyThreadState * )PyThread_tss_get (& runtime -> autoTSSkey );
98
98
}
99
99
100
100
static inline int
101
101
_current_tss_set (_PyRuntimeState * runtime , PyThreadState * tstate )
102
102
{
103
103
assert (tstate != NULL );
104
104
assert (current_tss_initialized (runtime ));
105
- return PyThread_tss_set (& runtime -> gilstate . autoTSSkey , (void * )tstate );
105
+ return PyThread_tss_set (& runtime -> autoTSSkey , (void * )tstate );
106
106
}
107
107
static inline void
108
108
current_tss_set (_PyRuntimeState * runtime , PyThreadState * tstate )
@@ -116,7 +116,7 @@ static inline void
116
116
current_tss_clear (_PyRuntimeState * runtime )
117
117
{
118
118
assert (current_tss_initialized (runtime ));
119
- if (PyThread_tss_set (& runtime -> gilstate . autoTSSkey , NULL ) != 0 ) {
119
+ if (PyThread_tss_set (& runtime -> autoTSSkey , NULL ) != 0 ) {
120
120
Py_FatalError ("failed to clear current tstate (TSS)" );
121
121
}
122
122
}
0 commit comments