Move worker_group dtor to header

This commit is contained in:
Marcus Holland-Moritz 2020-11-25 14:55:46 +01:00
parent 1062b62b6a
commit 0b58eab1e6
2 changed files with 1 additions and 3 deletions

View File

@ -59,7 +59,7 @@ class worker_group {
size_t max_num_workers = 1,
size_t max_queue_len = std::numeric_limits<size_t>::max());
~worker_group();
~worker_group() = default;
void stop() { impl_->stop(); }
void wait() { impl_->wait(); }

View File

@ -315,6 +315,4 @@ worker_group::worker_group(load_adaptive_tag, const char* group_name,
: impl_{std::make_unique<basic_worker_group<load_adaptive_policy>>(
group_name, max_num_workers, max_queue_len, max_num_workers)} {}
worker_group::~worker_group() = default;
} // namespace dwarfs