aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/ThreadPool
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2019-03-06 10:49:49 -0800
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2019-03-06 10:49:49 -0800
commit1bc2a0a57c5054754749dcb3235597098a208eaf (patch)
tree811f9301d84561fe8987d6481ef241b665478a00 /unsupported/Eigen/CXX11/src/ThreadPool
parent4e4dcd9026ed36c074170c13d4092eddaec5b285 (diff)
Add missing return to NonBlockingThreadPool::LocalSteal
Diffstat (limited to 'unsupported/Eigen/CXX11/src/ThreadPool')
-rw-r--r--unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h
index 115e39d07..bd1910dcc 100644
--- a/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h
+++ b/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h
@@ -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);