blob: e5bf5a834e44c8edda0158255214abed8503a2a9 [file] [log] [blame]
Olivier Deprezf4ef2d02021-04-20 13:36:24 +02001
2#ifndef Py_INTRCHECK_H
3#define Py_INTRCHECK_H
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8PyAPI_FUNC(int) PyOS_InterruptOccurred(void);
9PyAPI_FUNC(void) PyOS_InitInterrupts(void);
10#ifdef HAVE_FORK
11#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
12PyAPI_FUNC(void) PyOS_BeforeFork(void);
13PyAPI_FUNC(void) PyOS_AfterFork_Parent(void);
14PyAPI_FUNC(void) PyOS_AfterFork_Child(void);
15#endif
16#endif
17/* Deprecated, please use PyOS_AfterFork_Child() instead */
18Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyOS_AfterFork(void);
19
20#ifndef Py_LIMITED_API
21PyAPI_FUNC(int) _PyOS_IsMainThread(void);
22PyAPI_FUNC(void) _PySignal_AfterFork(void);
23
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
28#endif /* !Py_LIMITED_API */
29
30#ifdef __cplusplus
31}
32#endif
33#endif /* !Py_INTRCHECK_H */