summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-18 08:26:25 (GMT)
committerGitHub <noreply@github.com>2020-03-18 08:26:25 (GMT)
commit56bfdebfb17ea9d3245b1f222e92b8e3b1ed6118 (patch)
tree69de990dd515d603b5fc01f172320b7b304fda12 /Include/internal
parent611836a69a7a98bb106b4d315ed76a1e17266f4f (diff)
downloadcpython-56bfdebfb17ea9d3245b1f222e92b8e3b1ed6118.zip
cpython-56bfdebfb17ea9d3245b1f222e92b8e3b1ed6118.tar.gz
cpython-56bfdebfb17ea9d3245b1f222e92b8e3b1ed6118.tar.bz2
bpo-39984: Pass tstate to _PyEval_SignalAsyncExc() (GH-19049)
_PyEval_SignalAsyncExc() and _PyEval_FiniThreads() now expect tstate, instead of ceval.
Diffstat (limited to 'Include/internal')
-rw-r--r--Include/internal/pycore_ceval.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h
index 5aeef6c..4e5ae17 100644
--- a/Include/internal/pycore_ceval.h
+++ b/Include/internal/pycore_ceval.h
@@ -18,8 +18,7 @@ struct _frame;
extern void _Py_FinishPendingCalls(PyThreadState *tstate);
extern void _PyEval_InitRuntimeState(struct _ceval_runtime_state *);
extern void _PyEval_InitState(struct _ceval_state *);
-extern void _PyEval_FiniThreads(
- struct _ceval_runtime_state *ceval);
+extern void _PyEval_FiniThreads(PyThreadState *tstate);
PyAPI_FUNC(void) _PyEval_SignalReceived(
struct _ceval_runtime_state *ceval);
PyAPI_FUNC(int) _PyEval_AddPendingCall(
@@ -27,8 +26,7 @@ PyAPI_FUNC(int) _PyEval_AddPendingCall(
struct _ceval_runtime_state *ceval,
int (*func)(void *),
void *arg);
-PyAPI_FUNC(void) _PyEval_SignalAsyncExc(
- struct _ceval_runtime_state *ceval);
+PyAPI_FUNC(void) _PyEval_SignalAsyncExc(PyThreadState *tstate);
PyAPI_FUNC(void) _PyEval_ReInitThreads(
struct pyruntimestate *runtime);
PyAPI_FUNC(void) _PyEval_SetCoroutineOriginTrackingDepth(