Skip to content
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

manage GIL acquisition when doing things inside of pdal::plang #3

Merged
merged 5 commits into from
Jan 3, 2024

Conversation

hobu
Copy link
Member

@hobu hobu commented Jan 2, 2024

We want to be sanitary with the GIL so that we can release it in the PDAL Python extension. One area where that's really important is the log/redirect stuff this package provides. This PR implements pybind11's simplified gil_scoped_acquire and gil_scoped_release classes that handle management of the state, and then uses these to protect various calls where we need it.

@hobu hobu merged commit 146d9db into main Jan 3, 2024
26 checks passed
@hobu hobu deleted the gil-management branch January 3, 2024 18:07
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.

1 participant