Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hide GILPool behind a feature to test ability to fully avoid it #3685

Closed
wants to merge 1 commit into from

Conversation

adamreichold
Copy link
Member

Builds even if it obviously doesn't work due to unimplemented!() in register_owned. cfg'ing this one out and seeing whether we can get the result to compile would be the next after completing the Py2-based API.

Comment on lines +147 to +150
#[cfg(not(feature = "pool"))]
let gil = WithGIL::during_call();
#[cfg(not(feature = "pool"))]
let py = gil.python();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep this looks the right way to keep py bounded correctly 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants