File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,29 +74,29 @@ current_tss_fini(_PyRuntimeState *runtime)
74
74
PyThread_tss_delete (& runtime -> gilstate .autoTSSkey );
75
75
}
76
76
77
- static PyThreadState *
77
+ static inline PyThreadState *
78
78
current_tss_get (_PyRuntimeState * runtime )
79
79
{
80
80
assert (current_tss_initialized (runtime ));
81
81
return (PyThreadState * )PyThread_tss_get (& runtime -> gilstate .autoTSSkey );
82
82
}
83
83
84
- static int
84
+ static inline int
85
85
_current_tss_set (_PyRuntimeState * runtime , PyThreadState * tstate )
86
86
{
87
87
assert (tstate != NULL );
88
88
assert (current_tss_initialized (runtime ));
89
89
return PyThread_tss_set (& runtime -> gilstate .autoTSSkey , (void * )tstate );
90
90
}
91
- static void
91
+ static inline void
92
92
current_tss_set (_PyRuntimeState * runtime , PyThreadState * tstate )
93
93
{
94
94
if (_current_tss_set (runtime , tstate ) != 0 ) {
95
95
Py_FatalError ("failed to set current tstate (TSS)" );
96
96
}
97
97
}
98
98
99
- static void
99
+ static inline void
100
100
current_tss_clear (_PyRuntimeState * runtime )
101
101
{
102
102
assert (current_tss_initialized (runtime ));
You can’t perform that action at this time.
0 commit comments