Skip to content

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

Closed
adamreichold wants to merge 1 commit intomainfrom
no-pool-build
Closed

Hide GILPool behind a feature to test ability to fully avoid it#3685
adamreichold wants to merge 1 commit intomainfrom
no-pool-build

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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants