Add missing return to NonBlockingThreadPool::LocalSteal

This commit is contained in:
Eugene Zhulenev 2019-03-06 10:49:49 -08:00
parent 4e4dcd9026
commit 1bc2a0a57c

View File

@ -358,7 +358,7 @@ class ThreadPoolTempl : public Eigen::ThreadPoolInterface {
unsigned partition = GetStealPartition(pt->thread_id);
// If thread steal partition is the same as global partition, there is no
// need to go through the steal loop twice.
if (global_steal_partition_ == partition) Task();
if (global_steal_partition_ == partition) return Task();
unsigned start, limit;
DecodePartition(partition, &start, &limit);
AssertBounds(start, limit);