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

Fix GTK async dialog using 100% cpu #151

Closed
wants to merge 1 commit into from

Conversation

valadaptive
Copy link
Contributor

Resolves #150

If gtk_events_pending() returns 0, this loop would spin until gtk_events_pending() returned 1.

Now, we just run the (blocking) gtk_main_iteration in an unconditional loop (it unblocks once the dialog closes) which properly yields the thread.

@valadaptive
Copy link
Contributor Author

Superseded by #152

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.

GTK AsyncFileDialog seems to spinlock
1 participant