From 3e03c115863e3e4bf0651993445467c6be3826a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=BCller?= Date: Thu, 7 Jul 2022 10:59:05 +0200 Subject: [PATCH] Removed include and fixed type error. --- src/mx/tasking/scheduler.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mx/tasking/scheduler.cpp b/src/mx/tasking/scheduler.cpp index eefde76..cc523ee 100644 --- a/src/mx/tasking/scheduler.cpp +++ b/src/mx/tasking/scheduler.cpp @@ -2,7 +2,6 @@ #include #include #include -#include #include #include #include @@ -60,9 +59,9 @@ void Scheduler::start_and_wait() // Wait for the worker threads to end. This will only // reached when the _is_running flag is set to false // from somewhere in the application. - for (auto &worker : this->_worker) + for (auto *worker : this->_worker) { - worker.join(); + worker->join(); } if constexpr (config::memory_reclamation() != config::None)