diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-29 03:20:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 03:20:31 (GMT) |
commit | fadc2dc7df99501a40171f39b7cd23be732860cc (patch) | |
tree | 205ab7aca029a9738869eae19ea6ec2f20730949 /Include/internal/pycore_signal.h | |
parent | c9eefc77a7456c5354beaff9bdba449d3e42be35 (diff) | |
download | cpython-fadc2dc7df99501a40171f39b7cd23be732860cc.zip cpython-fadc2dc7df99501a40171f39b7cd23be732860cc.tar.gz cpython-fadc2dc7df99501a40171f39b7cd23be732860cc.tar.bz2 |
gh-106320: Remove private _PyOS_IsMainThread() function (#108605)
Move the following private API to the internal C API
(pycore_signal.h): _PyOS_IsMainThread() and _PyOS_SigintEvent().
Diffstat (limited to 'Include/internal/pycore_signal.h')
-rw-r--r-- | Include/internal/pycore_signal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Include/internal/pycore_signal.h b/Include/internal/pycore_signal.h index 8f87675..b38b1d3 100644 --- a/Include/internal/pycore_signal.h +++ b/Include/internal/pycore_signal.h @@ -95,6 +95,15 @@ struct _signals_runtime_state { } +// Export for '_multiprocessing' shared extension +PyAPI_FUNC(int) _PyOS_IsMainThread(void); + +#ifdef MS_WINDOWS +// <windows.h> is not included by Python.h so use void* instead of HANDLE. +// Export for '_multiprocessing' shared extension +PyAPI_FUNC(void*) _PyOS_SigintEvent(void); +#endif + #ifdef __cplusplus } #endif |