Fix a potential deadlock because of Eigen thread pool

This commit is contained in:
Eugene Zhulenev 2025-04-11 23:43:14 +00:00 committed by Rasmus Munk Larsen
parent 11fd34cc1c
commit cebe09110c

View File

@ -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();
}
}
}