Merge pull request #2334 from dtzWill/fix/revert-progress-bar-refresh-for-now
Revert "progress-bar: re-draw last update if nothing new for 1sec."
This commit is contained in:
commit
103ad1598c
|
@ -75,10 +75,9 @@ public:
|
||||||
updateThread = std::thread([&]() {
|
updateThread = std::thread([&]() {
|
||||||
auto state(state_.lock());
|
auto state(state_.lock());
|
||||||
while (state->active) {
|
while (state->active) {
|
||||||
auto r = state.wait_for(updateCV, std::chrono::seconds(1));
|
state.wait(updateCV);
|
||||||
draw(*state);
|
draw(*state);
|
||||||
if (r == std::cv_status::no_timeout)
|
state.wait_for(quitCV, std::chrono::milliseconds(50));
|
||||||
state.wait_for(quitCV, std::chrono::milliseconds(50));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue