Remove sync() call in progress class

This commit is contained in:
Marcus Holland-Moritz 2023-08-19 22:58:10 +02:00
parent b43500219a
commit cacf8d212b
2 changed files with 1 additions and 7 deletions

View File

@ -57,12 +57,6 @@ class progress {
unsigned interval_ms);
~progress() noexcept;
template <typename T>
void sync(T&& func) {
std::unique_lock lock(mx_);
func();
}
std::shared_ptr<context> create_context(std::string const& name) const;
std::vector<std::shared_ptr<context const>> get_active_contexts() const;

View File

@ -749,7 +749,7 @@ void scanner_<LoggerPolicy>::scan(
prog.set_status_function([](progress const&, size_t) {
return "waiting for block compression to finish";
});
prog.sync([&] { prog.current.store(nullptr); });
prog.current.store(nullptr);
// this is actually needed
root->set_name(std::string());