mirror of
https://github.com/python/cpython
synced 2024-11-05 18:12:54 +00:00
296a796951
Remove the undocumented PyOS_InitInterrupts() C function. * Rename PyOS_InitInterrupts() to _PySignal_Init(). It now installs other signal handlers, not only SIGINT. * Rename PyOS_FiniInterrupts() to _PySignal_Fini()
30 lines
772 B
C
30 lines
772 B
C
#ifndef Py_INTRCHECK_H
|
|
#define Py_INTRCHECK_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
PyAPI_FUNC(int) PyOS_InterruptOccurred(void);
|
|
#ifdef HAVE_FORK
|
|
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
|
|
PyAPI_FUNC(void) PyOS_BeforeFork(void);
|
|
PyAPI_FUNC(void) PyOS_AfterFork_Parent(void);
|
|
PyAPI_FUNC(void) PyOS_AfterFork_Child(void);
|
|
#endif
|
|
#endif
|
|
/* Deprecated, please use PyOS_AfterFork_Child() instead */
|
|
Py_DEPRECATED(3.7) PyAPI_FUNC(void) PyOS_AfterFork(void);
|
|
|
|
#ifndef Py_LIMITED_API
|
|
PyAPI_FUNC(int) _PyOS_IsMainThread(void);
|
|
|
|
#ifdef MS_WINDOWS
|
|
/* windows.h is not included by Python.h so use void* instead of HANDLE */
|
|
PyAPI_FUNC(void*) _PyOS_SigintEvent(void);
|
|
#endif
|
|
#endif /* !Py_LIMITED_API */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_INTRCHECK_H */
|