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

AnnotationsGadget binding : Fix GIL management bug #5951

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

johnhaddon
Copy link
Member

The annotationText() method may call BackgroundTask::cancelAndWait(), in which case the background task might require the GIL before the cancellation can complete. The lack of GIL management was causing hangs in the unit tests, but is unlikely to have caused any real-world problems, because annotationText() is only intended for use in the tests.

The `annotationText()` method may call `BackgroundTask::cancelAndWait()`, in which case the background task might require the GIL before the cancellation can complete. The lack of GIL management was causing hangs in the unit tests, but is unlikely to have caused any real-world problems, because `annotationText()` is only intended for use in the tests.
@johnhaddon johnhaddon requested a review from ericmehl July 10, 2024 10:47
@johnhaddon johnhaddon self-assigned this Jul 10, 2024
Copy link
Collaborator

@ericmehl ericmehl left a comment

Choose a reason for hiding this comment

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

LGTM

@ericmehl ericmehl merged commit 13057ac into GafferHQ:1.4_maintenance Jul 10, 2024
5 checks passed
@johnhaddon johnhaddon deleted the annotationsGadgetFix branch August 7, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants