mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-30 16:52:01 +08:00
Fix typo introduced in the refactor of NonBlockingThreadPool
This commit is contained in:
parent
b75895a8b6
commit
f9705adabb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user