blob: b8cc65601683cba552aad8eb0208c04f833470e1 [file] [log] [blame]
Fred Drake5eb6d4e2000-07-08 23:37:28 +00001#ifndef Py_INTRCHECK_H
2#define Py_INTRCHECK_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
Mark Hammond91a681d2002-08-12 07:21:58 +00007PyAPI_FUNC(int) PyOS_InterruptOccurred(void);
Antoine Pitrou346cbd32017-05-27 17:50:54 +02008#ifdef HAVE_FORK
Serhiy Storchaka4e29f562018-05-22 20:59:42 +03009#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
Antoine Pitrou346cbd32017-05-27 17:50:54 +020010PyAPI_FUNC(void) PyOS_BeforeFork(void);
11PyAPI_FUNC(void) PyOS_AfterFork_Parent(void);
12PyAPI_FUNC(void) PyOS_AfterFork_Child(void);
13#endif
Serhiy Storchaka4e29f562018-05-22 20:59:42 +030014#endif
Antoine Pitrou346cbd32017-05-27 17:50:54 +020015/* Deprecated, please use PyOS_AfterFork_Child() instead */
Zackery Spytz3c8724f2019-05-28 09:16:33 -060016Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyOS_AfterFork(void);
Serhiy Storchaka9fab79b2016-09-11 11:03:14 +030017
18#ifndef Py_LIMITED_API
Antoine Pitrou6dd381e2011-11-21 21:26:56 +010019PyAPI_FUNC(int) _PyOS_IsMainThread(void);
20
21#ifdef MS_WINDOWS
22/* windows.h is not included by Python.h so use void* instead of HANDLE */
23PyAPI_FUNC(void*) _PyOS_SigintEvent(void);
24#endif
Serhiy Storchaka9fab79b2016-09-11 11:03:14 +030025#endif /* !Py_LIMITED_API */
Guido van Rossuma3309961993-07-28 09:05:47 +000026
27#ifdef __cplusplus
28}
29#endif
30#endif /* !Py_INTRCHECK_H */