nix copy: Parallelise
This commit is contained in:
parent
b2ce6fde5a
commit
91539d305f
4 changed files with 61 additions and 22 deletions
|
|
@ -29,12 +29,12 @@ void ProgressBar::updateStatus(const std::string & s)
|
|||
|
||||
void ProgressBar::done()
|
||||
{
|
||||
_writeToStderr = decltype(_writeToStderr)();
|
||||
auto state_(state.lock());
|
||||
assert(state_->activities.empty());
|
||||
state_->done = true;
|
||||
std::cerr << "\r\e[K";
|
||||
std::cerr.flush();
|
||||
_writeToStderr = decltype(_writeToStderr)();
|
||||
}
|
||||
|
||||
void ProgressBar::render(State & state_)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue