1 #ifndef Py_INTRCHECK_H 2 #define Py_INTRCHECK_H 3 #ifdef __cplusplus 4 extern "C" { 5 #endif 6 7 PyAPI_FUNC(int) PyOS_InterruptOccurred(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 18 #ifndef Py_LIMITED_API 19 PyAPI_FUNC(int) _PyOS_IsMainThread(void); 20 21 #ifdef MS_WINDOWS 22 /* windows.h is not included by Python.h so use void* instead of HANDLE */ 23 PyAPI_FUNC(void*) _PyOS_SigintEvent(void); 24 #endif 25 #endif /* !Py_LIMITED_API */ 26 27 #ifdef __cplusplus 28 } 29 #endif 30 #endif /* !Py_INTRCHECK_H */ 31