diff --git a/src/scheduler.cpp b/src/scheduler.cpp index bb947f0..51bb27b 100644 --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -367,7 +367,7 @@ void Scheduler::Worker::start() { auto allocator = scheduler->cfg.allocator; auto& affinityPolicy = scheduler->cfg.workerThread.affinityPolicy; auto affinity = affinityPolicy->get(id, allocator); - thread = Thread(std::move(affinity), [=] { + thread = Thread(std::move(affinity), [=, this] { Thread::setName("Thread<%.2d>", int(id)); if (auto const& initFunc = scheduler->cfg.workerThread.initializer) {