Guido van Rossum | b674c3b | 1992-01-19 16:32:47 +0000 | [diff] [blame] | 1 | |
Fred Drake | 5eb6d4e | 2000-07-08 23:37:28 +0000 | [diff] [blame] | 2 | #ifndef Py_INTRCHECK_H |
| 3 | #define Py_INTRCHECK_H |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 8 | PyAPI_FUNC(int) PyOS_InterruptOccurred(void); |
| 9 | PyAPI_FUNC(void) PyOS_InitInterrupts(void); |
Antoine Pitrou | 346cbd3 | 2017-05-27 17:50:54 +0200 | [diff] [blame] | 10 | #ifdef HAVE_FORK |
| 11 | PyAPI_FUNC(void) PyOS_BeforeFork(void); |
| 12 | PyAPI_FUNC(void) PyOS_AfterFork_Parent(void); |
| 13 | PyAPI_FUNC(void) PyOS_AfterFork_Child(void); |
| 14 | #endif |
| 15 | /* Deprecated, please use PyOS_AfterFork_Child() instead */ |
| 16 | PyAPI_FUNC(void) PyOS_AfterFork(void) Py_DEPRECATED(3.7); |
Serhiy Storchaka | 9fab79b | 2016-09-11 11:03:14 +0300 | [diff] [blame] | 17 | |
| 18 | #ifndef Py_LIMITED_API |
Antoine Pitrou | 6dd381e | 2011-11-21 21:26:56 +0100 | [diff] [blame] | 19 | PyAPI_FUNC(int) _PyOS_IsMainThread(void); |
Antoine Pitrou | 346cbd3 | 2017-05-27 17:50:54 +0200 | [diff] [blame] | 20 | PyAPI_FUNC(void) _PySignal_AfterFork(void); |
Antoine Pitrou | 6dd381e | 2011-11-21 21:26:56 +0100 | [diff] [blame] | 21 | |
| 22 | #ifdef MS_WINDOWS |
| 23 | /* windows.h is not included by Python.h so use void* instead of HANDLE */ |
| 24 | PyAPI_FUNC(void*) _PyOS_SigintEvent(void); |
| 25 | #endif |
Serhiy Storchaka | 9fab79b | 2016-09-11 11:03:14 +0300 | [diff] [blame] | 26 | #endif /* !Py_LIMITED_API */ |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 27 | |
| 28 | #ifdef __cplusplus |
| 29 | } |
| 30 | #endif |
| 31 | #endif /* !Py_INTRCHECK_H */ |