-
Notifications
You must be signed in to change notification settings - Fork 108
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 Slow Exit #51
Fix Slow Exit #51
Conversation
Oh yeah, totally. I didn't even see the issue 👍 |
I'll merge your PR this weekend and release |
(gentle poke) |
public void run() { | ||
try { | ||
while (!killed) { | ||
while (!Thread.interrupted()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a refresh()
in the catch
clause.
Thanks a lot :-) I've fixed your bug and published |
Awesome. Thanks. Also apparently you know @HunterJHU :) |
At present progressbar version
0.7.3
will take on averageupdateInterval / 2
milliseconds to terminate, and for very short runs, will take a minimum ofupdateInterval
to complete itsclose()
handler.This patch fixes that by explicitly interrupting the
ProgressThread
as opposed to waiting for an internal semaphore to cleanup on the inner loop.