From 2a35a917be47766a895be610bedd66006980b7e6 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Tue, 28 Jan 2025 18:34:31 +0000 Subject: [PATCH] Fix syntax error in NonBlockingThreadPool.h --- 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 5c18366c7..11dfae358 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -158,7 +158,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { PerThread* pt = GetPerThread(); Queue& q = thread_data_[pt->thread_id].queue; *t = q.PopFront(); - if (t->f != nullptr) return; + if (t->f) return; if (num_threads_ == 1) { // For num_threads_ == 1 there is no point in going through the expensive // steal loop. Moreover, since NonEmptyQueueIndex() calls PopBack() on the