pycore_ceval.h 966 B

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