From 33adce5c3abcf14b1da5d9ba6502530d140f5cb4 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 21 Apr 2016 11:59:58 -0700 Subject: Added the ability to switch to the new thread pool with a #define --- unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h') 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 -- cgit v1.2.3