Skip to content

Commit 12c6585

Browse files
committed
Rename stop-the-world functions
1 parent 568df90 commit 12c6585

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Include/internal/pycore_pystate.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ extern void _PyThreadState_Suspend(PyThreadState *tstate);
164164
// them from reattaching until the stop-the-world pause is complete.
165165
//
166166
// NOTE: This is a no-op outside of Py_GIL_DISABLED builds.
167-
extern void _PyRuntimeState_StopTheWorld(_PyRuntimeState *runtime);
168-
extern void _PyRuntimeState_StartTheWorld(_PyRuntimeState *runtime);
167+
extern void _PyEval_StopTheWorldAll(_PyRuntimeState *runtime);
168+
extern void _PyEval_StartTheWorldAll(_PyRuntimeState *runtime);
169169

170170
// Perform a stop-the-world pause for threads in the specified interpreter.
171171
//
172172
// NOTE: This is a no-op outside of Py_GIL_DISABLED builds.
173-
extern void _PyInterpreterState_StopTheWorld(PyInterpreterState *interp);
174-
extern void _PyInterpreterState_StartTheWorld(PyInterpreterState *interp);
173+
extern void _PyEval_StopTheWorld(PyInterpreterState *interp);
174+
extern void _PyEval_StartTheWorld(PyInterpreterState *interp);
175175

176176

177177
static inline void

Python/pystate.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,31 +2054,31 @@ start_the_world(struct _stoptheworld_state *stw)
20542054
#endif // Py_GIL_DISABLED
20552055

20562056
void
2057-
_PyRuntimeState_StopTheWorld(_PyRuntimeState *runtime)
2057+
_PyEval_StopTheWorldAll(_PyRuntimeState *runtime)
20582058
{
20592059
#ifdef Py_GIL_DISABLED
20602060
stop_the_world(&runtime->stoptheworld);
20612061
#endif
20622062
}
20632063

20642064
void
2065-
_PyRuntimeState_StartTheWorld(_PyRuntimeState *runtime)
2065+
_PyEval_StartTheWorldAll(_PyRuntimeState *runtime)
20662066
{
20672067
#ifdef Py_GIL_DISABLED
20682068
start_the_world(&runtime->stoptheworld);
20692069
#endif
20702070
}
20712071

20722072
void
2073-
_PyInterpreterState_StopTheWorld(PyInterpreterState *interp)
2073+
_PyEval_StopTheWorld(PyInterpreterState *interp)
20742074
{
20752075
#ifdef Py_GIL_DISABLED
20762076
stop_the_world(&interp->stoptheworld);
20772077
#endif
20782078
}
20792079

20802080
void
2081-
_PyInterpreterState_StartTheWorld(PyInterpreterState *interp)
2081+
_PyEval_StartTheWorld(PyInterpreterState *interp)
20822082
{
20832083
#ifdef Py_GIL_DISABLED
20842084
start_the_world(&interp->stoptheworld);

0 commit comments

Comments
 (0)