mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-24 02:29:33 +08:00
Fix a potential deadlock because of Eigen thread pool
This commit is contained in:
parent
11fd34cc1c
commit
cebe09110c
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user