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

improve HDF5Viewer, add lock for await_finalize #69

Merged
merged 1 commit into from
Jun 1, 2024
Merged

Conversation

jwahlstrand
Copy link
Member

While trying to add more multithreading to the example HDF5Viewer, I ran into a crash. The code involves populating a GtkTreeModel in a separate thread, which triggers the finalizing code in that thread. Adding a lock around all operations involving the set "await_finalize" fixed it.

Judging by JuliaGraphics/Gtk.jl#694 there is probably a lot more we need to do, but I am not sure what's the best strategy. This fixes my issue so I'll just add this for now.

@jwahlstrand jwahlstrand merged commit ee7b5d7 into main Jun 1, 2024
11 checks passed
@jwahlstrand jwahlstrand deleted the jw/awaitlock branch June 1, 2024 23:18
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