• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef Py_INTERNAL_CEVAL_H
2 #define Py_INTERNAL_CEVAL_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
7 #ifndef Py_BUILD_CORE
8 #  error "this header requires Py_BUILD_CORE define"
9 #endif
10 
11 #include "pycore_atomic.h"
12 #include "pycore_pystate.h"
13 #include "pythread.h"
14 
15 PyAPI_FUNC(void) _Py_FinishPendingCalls(_PyRuntimeState *runtime);
16 PyAPI_FUNC(void) _PyEval_Initialize(struct _ceval_runtime_state *);
17 PyAPI_FUNC(void) _PyEval_FiniThreads(
18     struct _ceval_runtime_state *ceval);
19 PyAPI_FUNC(void) _PyEval_SignalReceived(
20     struct _ceval_runtime_state *ceval);
21 PyAPI_FUNC(int) _PyEval_AddPendingCall(
22     PyThreadState *tstate,
23     struct _ceval_runtime_state *ceval,
24     int (*func)(void *),
25     void *arg);
26 PyAPI_FUNC(void) _PyEval_SignalAsyncExc(
27     struct _ceval_runtime_state *ceval);
28 PyAPI_FUNC(void) _PyEval_ReInitThreads(
29     _PyRuntimeState *runtime);
30 
31 /* Private function */
32 void _PyEval_Fini(void);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 #endif /* !Py_INTERNAL_CEVAL_H */
38