File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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)
7474 PyThread_tss_delete (& runtime -> gilstate .autoTSSkey );
7575}
7676
77- static PyThreadState *
77+ static inline PyThreadState *
7878current_tss_get (_PyRuntimeState * runtime )
7979{
8080 assert (current_tss_initialized (runtime ));
8181 return (PyThreadState * )PyThread_tss_get (& runtime -> gilstate .autoTSSkey );
8282}
8383
84- static int
84+ static inline int
8585_current_tss_set (_PyRuntimeState * runtime , PyThreadState * tstate )
8686{
8787 assert (tstate != NULL );
8888 assert (current_tss_initialized (runtime ));
8989 return PyThread_tss_set (& runtime -> gilstate .autoTSSkey , (void * )tstate );
9090}
91- static void
91+ static inline void
9292current_tss_set (_PyRuntimeState * runtime , PyThreadState * tstate )
9393{
9494 if (_current_tss_set (runtime , tstate ) != 0 ) {
9595 Py_FatalError ("failed to set current tstate (TSS)" );
9696 }
9797}
9898
99- static void
99+ static inline void
100100current_tss_clear (_PyRuntimeState * runtime )
101101{
102102 assert (current_tss_initialized (runtime ));
You can’t perform that action at this time.
0 commit comments