mirror of
https://github.com/python/cpython.git
synced 2024-11-27 03:45:08 +08:00
fadc2dc7df
Move the following private API to the internal C API (pycore_signal.h): _PyOS_IsMainThread() and _PyOS_SigintEvent().
24 lines
535 B
C
24 lines
535 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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_INTRCHECK_H */
|