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().
This commit is contained in:
Victor Stinner 2023-08-29 05:20:31 +02:00 committed by GitHub
parent c9eefc77a7
commit fadc2dc7df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View file

@ -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