-
Notifications
You must be signed in to change notification settings - Fork 11
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release GIL for detached smol::Executor #30
Comments
Sorry for the slow reply. Can you demonstrate a more complete repro along with how you conclude that the GIL is not released? I see nothing obvious in this snippet. |
i need to following to work without having to sleep in the background until background function is called, if i uncomment the line where it sleeps for 1 sec, it will work. while it should if the gil is released since there is a loop in the background function, and it shouldn't exit.
|
The call to I will move this issue to |
Discussed in PyO3/pyo3#4775
Originally posted by ertosns December 6, 2024
allow_threads doesn't release gil for detached smol::Executor in background, for example the following code block only run in the main thread, and the gil doesn't seem to be released.
The text was updated successfully, but these errors were encountered: