aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-21 11:59:58 -0700
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-04-21 11:59:58 -0700
commit33adce5c3abcf14b1da5d9ba6502530d140f5cb4 (patch)
tree9d9752eb508ea0357e5e495ff5cead1d031da9d3 /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h
parent79b900375fc0bffd659b19f56818156942687b0c (diff)
Added the ability to switch to the new thread pool with a #define
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h
index 41918eb19..fc03d84a7 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h
@@ -14,7 +14,11 @@ namespace Eigen {
// Use the SimpleThreadPool by default. We'll switch to the new non blocking
// thread pool later.
+#ifdef EIGEN_USE_NONBLOCKING_THREAD_POOL
+typedef NonBlockingThreadPool ThreadPool;
+#else
typedef SimpleThreadPool ThreadPool;
+#endif
// Barrier is an object that allows one or more threads to wait until