Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
gh-106320: Remove private _PyOS_IsMainThread() function#108605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Move the following private API to the internal C API(pycore_signal.h): _PyOS_IsMainThread() and _PyOS_SigintEvent().
This breaks tensorstore, specifically due to the usage of It is used in order to make a blocking wait within the main thread interruptible via Control+C on Windows. I don't know of any easy alternative. For now I will be using the workaround of copying the declaration to my own source file, but if the function is eventually removed entirely that won't work. |
Would you mind to open a new issue since this one is closed? Please explain your use case and why you need this function to be exposed. |
Ping@jbms. |
Uh oh!
There was an error while loading.Please reload this page.
Move the following private API to the internal C API (pycore_signal.h):
No longer export these functions.