From cebe09110cef69945aba68f74c022217091cd1f6 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Fri, 11 Apr 2025 23:43:14 +0000 Subject: [PATCH] Fix a potential deadlock because of Eigen thread pool --- 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 4ec13548b..44d4b2432 100644 --- a/Eigen/src/ThreadPool/NonBlockingThreadPool.h +++ b/Eigen/src/ThreadPool/NonBlockingThreadPool.h @@ -184,7 +184,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface { // steal one more time, to make sure that this task will be // executed. We will not necessarily find it, because it might // have been already stolen by some other thread. - if (has_no_notify_task && !t->f) *t = q.PopFront(); + if (has_no_notify_task && !t->f) *t = GlobalSteal(); } } }