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)