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