Skip to content

Asynchronous status reporting - keeps workers from blocking on UI status reporting #13

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

Merged
merged 1 commit into from
Oct 7, 2013

Conversation

LeeKamentsky
Copy link
Member

Hi all, this is a proposed change that makes the default status service use asynchronous messaging for status events. I experienced a deadlock when a worker thread reported a status after grabbing a lock while the UI thread was repainting. The UI thread blocked when it tried to get the worker thread's locked object and ImageJ deadlocked because the worker thread blocked while waiting for the status event to be handled by the UI thread.

This limits the problem somewhat.

bdezonia added a commit that referenced this pull request Oct 7, 2013
Asynchronous status reporting - keeps workers from blocking on UI status reporting
@bdezonia bdezonia merged commit 0af4be8 into scijava:master Oct 7, 2013
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.

2 participants