8000 Inline the current_tss helpers. · python/cpython@5903b39 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5903b39

Browse files
Inline the current_tss helpers.
1 parent bb86c59 commit 5903b39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/pystate.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 *
7878
current_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
9292
current_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
100100
current_tss_clear(_PyRuntimeState *runtime)
101101
{
102102
assert(current_tss_initialized(runtime));

0 commit comments

Comments
 (0)
0