mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
nix copy: Revive progress bar
This commit is contained in:
parent
dffc3fe43b
commit
c5e4404580
6 changed files with 99 additions and 2 deletions
|
@ -80,4 +80,15 @@ std::atomic<uint64_t> nextId{(uint64_t) getpid() << 32};
|
|||
|
||||
Activity::Activity() : id(nextId++) { };
|
||||
|
||||
Activity::Activity(ActivityType type, std::string msg)
|
||||
: Activity()
|
||||
{
|
||||
logger->event(evStartActivity, id, msg);
|
||||
}
|
||||
|
||||
Activity::~Activity()
|
||||
{
|
||||
logger->event(evStopActivity, id);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue