mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Address comments about EIGEN_THREAD_LOCAL.
This commit is contained in:
@@ -44,6 +44,10 @@
|
|||||||
#include <thread>
|
#include <thread>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include "src/util/CXX11Meta.h"
|
||||||
|
#include "src/util/MaxSizeVector.h"
|
||||||
|
|
||||||
|
#include "src/ThreadPool/ThreadLocal.h"
|
||||||
#ifndef EIGEN_THREAD_LOCAL
|
#ifndef EIGEN_THREAD_LOCAL
|
||||||
// There are non-parenthesized calls to "max" in the <unordered_map> header,
|
// There are non-parenthesized calls to "max" in the <unordered_map> header,
|
||||||
// which trigger a check in test/main.h causing compilation to fail.
|
// which trigger a check in test/main.h causing compilation to fail.
|
||||||
@@ -54,11 +58,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "src/util/CXX11Meta.h"
|
|
||||||
#include "src/util/MaxSizeVector.h"
|
|
||||||
|
|
||||||
#include "src/ThreadPool/ThreadLocal.h"
|
|
||||||
#include "src/ThreadPool/ThreadYield.h"
|
#include "src/ThreadPool/ThreadYield.h"
|
||||||
#include "src/ThreadPool/ThreadCancel.h"
|
#include "src/ThreadPool/ThreadCancel.h"
|
||||||
#include "src/ThreadPool/EventCount.h"
|
#include "src/ThreadPool/EventCount.h"
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
#ifndef EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H
|
#ifndef EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H
|
||||||
#define EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H
|
#define EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H
|
||||||
|
|
||||||
#undef EIGEN_THREAD_LOCAL
|
|
||||||
|
|
||||||
#if EIGEN_MAX_CPP_VER >= 11 && \
|
#if EIGEN_MAX_CPP_VER >= 11 && \
|
||||||
((EIGEN_COMP_GNUC && EIGEN_GNUC_AT_LEAST(4, 8)) || \
|
((EIGEN_COMP_GNUC && EIGEN_GNUC_AT_LEAST(4, 8)) || \
|
||||||
__has_feature(cxx_thread_local))
|
__has_feature(cxx_thread_local))
|
||||||
|
|||||||
Reference in New Issue
Block a user