8000 Rename stop-the-world functions · python/cpython@4f7b6ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f7b6ce

Browse files
committed
Rename stop-the-world functions
1 parent 470298f commit 4f7b6ce

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
@@ -2055,31 +2055,31 @@ start_the_world(struct _stoptheworld_state *stw)
20552055
#endif // Py_GIL_DISABLED
20562056

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

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

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

20812081
void
2082-
_PyInterpreterState_StartTheWorld(PyInterpreterState *interp)
2082+
_PyEval_StartTheWorld(PyInterpreterState *interp)
20832083
{
20842084
#ifdef Py_GIL_DISABLED
20852085
start_the_world(&interp->stoptheworld);

0 commit comments

Comments
 (0)
0