mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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:
parent
c9eefc77a7
commit
fadc2dc7df
2 changed files with 11 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue