intrcheck.h 772 B

123456789101112131415161718192021222324252627282930
  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. #ifdef HAVE_FORK
  8. #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
  9. PyAPI_FUNC(void) PyOS_BeforeFork(void);
  10. PyAPI_FUNC(void) PyOS_AfterFork_Parent(void);
  11. PyAPI_FUNC(void) PyOS_AfterFork_Child(void);
  12. #endif
  13. #endif
  14. /* Deprecated, please use PyOS_AfterFork_Child() instead */
  15. Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyOS_AfterFork(void);
  16. #ifndef Py_LIMITED_API
  17. PyAPI_FUNC(int) _PyOS_IsMainThread(void);
  18. #ifdef MS_WINDOWS
  19. /* windows.h is not included by Python.h so use void* instead of HANDLE */
  20. PyAPI_FUNC(void*) _PyOS_SigintEvent(void);
  21. #endif
  22. #endif /* !Py_LIMITED_API */
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif /* !Py_INTRCHECK_H */