intrcheck.h 861 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef Py_INTRCHECK_H
  2. #define Py_INTRCHECK_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. PyAPI_FUNC(int) PyOS_InterruptOccurred(void);
  7. PyAPI_FUNC(void) PyOS_InitInterrupts(void);
  8. #ifdef HAVE_FORK
  9. #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
  10. PyAPI_FUNC(void) PyOS_BeforeFork(void);
  11. PyAPI_FUNC(void) PyOS_AfterFork_Parent(void);
  12. PyAPI_FUNC(void) PyOS_AfterFork_Child(void);
  13. #endif
  14. #endif
  15. /* Deprecated, please use PyOS_AfterFork_Child() instead */
  16. Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyOS_AfterFork(void);
  17. #ifndef Py_LIMITED_API
  18. PyAPI_FUNC(int) _PyOS_IsMainThread(void);
  19. PyAPI_FUNC(void) _PySignal_AfterFork(void);
  20. #ifdef MS_WINDOWS
  21. /* windows.h is not included by Python.h so use void* instead of HANDLE */
  22. PyAPI_FUNC(void*) _PyOS_SigintEvent(void);
  23. #endif
  24. #endif /* !Py_LIMITED_API */
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* !Py_INTRCHECK_H */