mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Fix syntax error in NonBlockingThreadPool.h
This commit is contained in:
parent
a056b93114
commit
2a35a917be
@ -158,7 +158,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface {
|
|||||||
PerThread* pt = GetPerThread();
|
PerThread* pt = GetPerThread();
|
||||||
Queue& q = thread_data_[pt->thread_id].queue;
|
Queue& q = thread_data_[pt->thread_id].queue;
|
||||||
*t = q.PopFront();
|
*t = q.PopFront();
|
||||||
if (t->f != nullptr) return;
|
if (t->f) return;
|
||||||
if (num_threads_ == 1) {
|
if (num_threads_ == 1) {
|
||||||
// For num_threads_ == 1 there is no point in going through the expensive
|
// For num_threads_ == 1 there is no point in going through the expensive
|
||||||
// steal loop. Moreover, since NonEmptyQueueIndex() calls PopBack() on the
|
// steal loop. Moreover, since NonEmptyQueueIndex() calls PopBack() on the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user