From f9705adabb9078ea8d15ce5bf7350e75e4de690b Mon Sep 17 00:00:00 2001 From: William Kong Date: Sat, 25 Jan 2025 17:13:24 +0000 Subject: [PATCH] Fix typo introduced in the refactor of NonBlockingThreadPool --- Eigen/src/ThreadPool/NonBlockingThreadPool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/ThreadPool/NonBlockingThreadPool.h b/Eigen/src/ThreadPool/NonBlockingThreadPool.h index 9c0fb7b11..2645356ca 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -167,7 +167,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { if (EIGEN_PREDICT_FALSE(!t->f)) *t = GlobalSteal(); if (EIGEN_PREDICT_FALSE(!t->f)) { if (allow_spinning_ && StartSpinning()) { - for (int i = 0; i < spin_count_ && !t->f; ++i) *t = q.PopFront(); + for (int i = 0; i < spin_count_ && !t->f; ++i) *t = GlobalSteal(); // Notify `spinning_state_` that we are no longer spinning. bool has_no_notify_task = StopSpinning(); // If a task was submitted to the queue without a call to