1992-01-19 16:32:47 +00:00
|
|
|
|
2000-07-08 23:37:28 +00:00
|
|
|
#ifndef Py_INTRCHECK_H
|
|
|
|
#define Py_INTRCHECK_H
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2002-08-12 07:21:58 +00:00
|
|
|
PyAPI_FUNC(int) PyOS_InterruptOccurred(void);
|
|
|
|
PyAPI_FUNC(void) PyOS_InitInterrupts(void);
|
2017-05-27 15:50:54 +00:00
|
|
|
#ifdef HAVE_FORK
|
|
|
|
PyAPI_FUNC(void) PyOS_BeforeFork(void);
|
|
|
|
PyAPI_FUNC(void) PyOS_AfterFork_Parent(void);
|
|
|
|
PyAPI_FUNC(void) PyOS_AfterFork_Child(void);
|
|
|
|
#endif
|
|
|
|
/* Deprecated, please use PyOS_AfterFork_Child() instead */
|
|
|
|
PyAPI_FUNC(void) PyOS_AfterFork(void) Py_DEPRECATED(3.7);
|
2016-09-11 08:03:14 +00:00
|
|
|
|
|
|
|
#ifndef Py_LIMITED_API
|
2011-11-21 20:26:56 +00:00
|
|
|
PyAPI_FUNC(int) _PyOS_IsMainThread(void);
|
2017-05-27 15:50:54 +00:00
|
|
|
PyAPI_FUNC(void) _PySignal_AfterFork(void);
|
2011-11-21 20:26:56 +00:00
|
|
|
|
|
|
|
#ifdef MS_WINDOWS
|
|
|
|
/* windows.h is not included by Python.h so use void* instead of HANDLE */
|
|
|
|
PyAPI_FUNC(void*) _PyOS_SigintEvent(void);
|
|
|
|
#endif
|
2016-09-11 08:03:14 +00:00
|
|
|
#endif /* !Py_LIMITED_API */
|
1993-07-28 09:05:47 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* !Py_INTRCHECK_H */
|