blob: 2e17336ca659ed25638a5f129ee69e009ab1ba3e [file] [log] [blame]
Guido van Rossumb674c3b1992-01-19 16:32:47 +00001
Fred Drake5eb6d4e2000-07-08 23:37:28 +00002#ifndef Py_INTRCHECK_H
3#define Py_INTRCHECK_H
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Mark Hammond91a681d2002-08-12 07:21:58 +00008PyAPI_FUNC(int) PyOS_InterruptOccurred(void);
9PyAPI_FUNC(void) PyOS_InitInterrupts(void);
Antoine Pitrou346cbd32017-05-27 17:50:54 +020010#ifdef HAVE_FORK
Serhiy Storchaka4e29f562018-05-22 20:59:42 +030011#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
Antoine Pitrou346cbd32017-05-27 17:50:54 +020012PyAPI_FUNC(void) PyOS_BeforeFork(void);
13PyAPI_FUNC(void) PyOS_AfterFork_Parent(void);
14PyAPI_FUNC(void) PyOS_AfterFork_Child(void);
15#endif
Serhiy Storchaka4e29f562018-05-22 20:59:42 +030016#endif
Antoine Pitrou346cbd32017-05-27 17:50:54 +020017/* Deprecated, please use PyOS_AfterFork_Child() instead */
18PyAPI_FUNC(void) PyOS_AfterFork(void) Py_DEPRECATED(3.7);
Serhiy Storchaka9fab79b2016-09-11 11:03:14 +030019
20#ifndef Py_LIMITED_API
Antoine Pitrou6dd381e2011-11-21 21:26:56 +010021PyAPI_FUNC(int) _PyOS_IsMainThread(void);
Antoine Pitrou346cbd32017-05-27 17:50:54 +020022PyAPI_FUNC(void) _PySignal_AfterFork(void);
Antoine Pitrou6dd381e2011-11-21 21:26:56 +010023
24#ifdef MS_WINDOWS
25/* windows.h is not included by Python.h so use void* instead of HANDLE */
26PyAPI_FUNC(void*) _PyOS_SigintEvent(void);
27#endif
Serhiy Storchaka9fab79b2016-09-11 11:03:14 +030028#endif /* !Py_LIMITED_API */
Guido van Rossuma3309961993-07-28 09:05:47 +000029
30#ifdef __cplusplus
31}
32#endif
33#endif /* !Py_INTRCHECK_H */