ThreadLocal.h
Go to the documentation of this file.
1 // This file is part of Eigen, a lightweight C++ template library
2 // for linear algebra.
3 //
4 // Copyright (C) 2016 Benoit Steiner <benoit.steiner.goog@gmail.com>
5 //
6 // This Source Code Form is subject to the terms of the Mozilla
7 // Public License v. 2.0. If a copy of the MPL was not distributed
8 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 
10 #ifndef EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H
11 #define EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H
12 
13 // Try to come up with a portable implementation of thread local variables
14 #if EIGEN_COMP_GNUC && EIGEN_GNUC_AT_MOST(4, 7)
15 #define EIGEN_THREAD_LOCAL static __thread
16 #elif EIGEN_COMP_CLANG
17 #define EIGEN_THREAD_LOCAL static __thread
18 #else
19 #define EIGEN_THREAD_LOCAL static thread_local
20 #endif
21 
22 #endif // EIGEN_CXX11_THREADPOOL_THREAD_LOCAL_H


hebiros
Author(s): Xavier Artache , Matthew Tesch
autogenerated on Thu Sep 3 2020 04:09:39