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

simplify GIL handling #530

Merged
merged 1 commit into from
Jul 24, 2024
Merged

simplify GIL handling #530

merged 1 commit into from
Jul 24, 2024

Conversation

cjdoris
Copy link
Collaborator

@cjdoris cjdoris commented Jul 24, 2024

Removes PythonCall.C.with_gil() which existed purely to acquire the GIL which was released by ctypes when initialising Julia via its C API.

Instead, this uses ctypes.PyDLL to call into the C API without releasing the GIL.

@cjdoris cjdoris merged commit ce8bd7a into main Jul 24, 2024
13 checks passed
@cjdoris cjdoris deleted the move-gil-handling branch July 24, 2024 17:21
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