summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_ceval.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2019-06-01 21:39:46 (GMT)
committerGitHub <noreply@github.com>2019-06-01 21:39:46 (GMT)
commit6a150bcaeb190d1731b38ab9c7a5d1a352847ddc (patch)
tree687d690cdcb19d4f30806b628dcdee37a4d61a13 /Include/internal/pycore_ceval.h
parent218e47b61862470477922e9aba1a23fd3dab18ae (diff)
downloadcpython-6a150bcaeb190d1731b38ab9c7a5d1a352847ddc.zip
cpython-6a150bcaeb190d1731b38ab9c7a5d1a352847ddc.tar.gz
cpython-6a150bcaeb190d1731b38ab9c7a5d1a352847ddc.tar.bz2
bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)
Diffstat (limited to 'Include/internal/pycore_ceval.h')
-rw-r--r--Include/internal/pycore_ceval.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h
index 37170ed..d44afdf 100644
--- a/Include/internal/pycore_ceval.h
+++ b/Include/internal/pycore_ceval.h
@@ -12,19 +12,22 @@ extern "C" {
#include "pycore_pystate.h"
#include "pythread.h"
-PyAPI_FUNC(void) _Py_FinishPendingCalls(_PyRuntimeState *runtime);
PyAPI_FUNC(void) _PyEval_Initialize(struct _ceval_runtime_state *);
PyAPI_FUNC(void) _PyEval_FiniThreads(
- struct _ceval_runtime_state *ceval);
+ struct _ceval_runtime_state *);
PyAPI_FUNC(void) _PyEval_SignalReceived(
- struct _ceval_runtime_state *ceval);
+ struct _ceval_runtime_state *);
PyAPI_FUNC(int) _PyEval_AddPendingCall(
PyThreadState *tstate,
- struct _ceval_runtime_state *ceval,
+ struct _ceval_runtime_state *,
+ struct _ceval_interpreter_state *,
+ unsigned long thread_id,
int (*func)(void *),
void *arg);
+PyAPI_FUNC(void) _PyEval_FinishPendingCalls(PyInterpreterState *);
PyAPI_FUNC(void) _PyEval_SignalAsyncExc(
- struct _ceval_runtime_state *ceval);
+ struct _ceval_runtime_state *,
+ struct _ceval_interpreter_state *);
PyAPI_FUNC(void) _PyEval_ReInitThreads(
_PyRuntimeState *runtime);