blob: 7a3166e86dab7f115efeedc033040cd7f37e6402 [file] [log] [blame]
Eric Snow2ebc5ce2017-09-07 23:51:28 -06001#ifndef Py_INTERNAL_CEVAL_H
2#define Py_INTERNAL_CEVAL_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
Victor Stinner5c75f372019-04-17 23:02:26 +02007#ifndef Py_BUILD_CORE
8# error "this header requires Py_BUILD_CORE define"
Victor Stinner130893d2018-11-09 13:03:37 +01009#endif
10
Victor Stinner27e2d1f2018-11-01 00:52:28 +010011#include "pycore_atomic.h"
Victor Stinner09532fe2019-05-10 23:39:09 +020012#include "pycore_pystate.h"
Eric Snow2ebc5ce2017-09-07 23:51:28 -060013#include "pythread.h"
14
Victor Stinner09532fe2019-05-10 23:39:09 +020015PyAPI_FUNC(void) _Py_FinishPendingCalls(_PyRuntimeState *runtime);
Eric Snow2ebc5ce2017-09-07 23:51:28 -060016PyAPI_FUNC(void) _PyEval_Initialize(struct _ceval_runtime_state *);
Victor Stinner09532fe2019-05-10 23:39:09 +020017PyAPI_FUNC(void) _PyEval_FiniThreads(
18 struct _ceval_runtime_state *ceval);
19PyAPI_FUNC(void) _PyEval_SignalReceived(
20 struct _ceval_runtime_state *ceval);
21PyAPI_FUNC(int) _PyEval_AddPendingCall(
22 struct _ceval_runtime_state *ceval,
23 int (*func)(void *),
24 void *arg);
25PyAPI_FUNC(void) _PyEval_SignalAsyncExc(
26 struct _ceval_runtime_state *ceval);
Victor Stinnerd5d9e812019-05-13 12:35:37 +020027PyAPI_FUNC(void) _PyEval_ReInitThreads(
28 _PyRuntimeState *runtime);
Eric Snow2ebc5ce2017-09-07 23:51:28 -060029
Eric Snow2ebc5ce2017-09-07 23:51:28 -060030#ifdef __cplusplus
31}
32#endif
33#endif /* !Py_INTERNAL_CEVAL_H */