aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/ThreadPool
diff options
context:
space:
mode:
authorGravatar Eugene Zhulenev <ezhulenev@google.com>2019-09-09 15:18:14 -0700
committerGravatar Eugene Zhulenev <ezhulenev@google.com>2019-09-09 15:18:14 -0700
commite3dec4dcc1854972113ba7862c801737d7955972 (patch)
tree8c09ffc39e079cb78545919a78e36839ed068212 /unsupported/Eigen/CXX11/ThreadPool
parent17226100c5e56d1c6064560390a4a6e16677bb45 (diff)
ThreadLocal container that does not rely on thread local storage
Diffstat (limited to 'unsupported/Eigen/CXX11/ThreadPool')
-rw-r--r--unsupported/Eigen/CXX11/ThreadPool10
1 files changed, 5 insertions, 5 deletions
diff --git a/unsupported/Eigen/CXX11/ThreadPool b/unsupported/Eigen/CXX11/ThreadPool
index 7a795da3d..71a6afe39 100644
--- a/unsupported/Eigen/CXX11/ThreadPool
+++ b/unsupported/Eigen/CXX11/ThreadPool
@@ -45,11 +45,7 @@
#include <functional>
#include <memory>
#include <utility>
-#include "src/util/CXX11Meta.h"
-#include "src/util/MaxSizeVector.h"
-#include "src/ThreadPool/ThreadLocal.h"
-#ifndef EIGEN_THREAD_LOCAL
// There are non-parenthesized calls to "max" in the <unordered_map> header,
// which trigger a check in test/main.h causing compilation to fail.
// We work around the check here by removing the check for max in
@@ -58,7 +54,11 @@
#undef max
#endif
#include <unordered_map>
-#endif
+
+#include "src/util/CXX11Meta.h"
+#include "src/util/MaxSizeVector.h"
+
+#include "src/ThreadPool/ThreadLocal.h"
#include "src/ThreadPool/ThreadYield.h"
#include "src/ThreadPool/ThreadCancel.h"
#include "src/ThreadPool/EventCount.h"