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 |
Serhiy Storchaka | 4e29f56 | 2018-05-22 20:59:42 +0300 | [diff] [blame^] | 11 | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000 |
Antoine Pitrou | 346cbd3 | 2017-05-27 17:50:54 +0200 | [diff] [blame] | 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 |
Serhiy Storchaka | 4e29f56 | 2018-05-22 20:59:42 +0300 | [diff] [blame^] | 16 | #endif |
Antoine Pitrou | 346cbd3 | 2017-05-27 17:50:54 +0200 | [diff] [blame] | 17 | /* Deprecated, please use PyOS_AfterFork_Child() instead */ |
| 18 | PyAPI_FUNC(void) PyOS_AfterFork(void) Py_DEPRECATED(3.7); |
Serhiy Storchaka | 9fab79b | 2016-09-11 11:03:14 +0300 | [diff] [blame] | 19 | |
| 20 | #ifndef Py_LIMITED_API |
Antoine Pitrou | 6dd381e | 2011-11-21 21:26:56 +0100 | [diff] [blame] | 21 | PyAPI_FUNC(int) _PyOS_IsMainThread(void); |
Antoine Pitrou | 346cbd3 | 2017-05-27 17:50:54 +0200 | [diff] [blame] | 22 | PyAPI_FUNC(void) _PySignal_AfterFork(void); |
Antoine Pitrou | 6dd381e | 2011-11-21 21:26:56 +0100 | [diff] [blame] | 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 |
Serhiy Storchaka | 9fab79b | 2016-09-11 11:03:14 +0300 | [diff] [blame] | 28 | #endif /* !Py_LIMITED_API */ |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |
| 33 | #endif /* !Py_INTRCHECK_H */ |