Loading [MathJax]/jax/output/HTML-CSS/config.js
|
ROOT
Reference Guide |
|
Go to the documentation of this file.
45#define VMC_MULTITHREADED 1
47#if ( defined (VMC_MULTITHREADED) )
49#if (defined(__MACH__) && defined(__clang__) && defined(__x86_64__)) || (defined(__linux__) && defined(__clang__))
50#if (__has_feature(cxx_thread_local))
51#define TMCThreadLocalStatic static thread_local
52#define TMCThreadLocal thread_local
54#define TMCThreadLocalStatic static __thread
55#define TMCThreadLocal __thread
58#elif ((defined(__linux__) || defined(__MACH__)) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && \
59 (__GNUC__ >= 4 && __GNUC_MINOR__ < 9))
60#define TMCThreadLocalStatic static __thread
61#define TMCThreadLocal thread_local
63#elif ((defined(__linux__) || defined(__MACH__)) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && \
64 (__GNUC__ >= 4 && __GNUC_MINOR__ >= 9) || \
66#define TMCThreadLocalStatic static thread_local
67#define TMCThreadLocal thread_local
69#elif ((defined(__linux__) || defined(__MACH__)) && defined(__INTEL_COMPILER))
70#if (__INTEL_COMPILER >= 1500)
71#define TMCThreadLocalStatic static thread_local
72#define TMCThreadLocal thread_local
74#define TMCThreadLocalStatic static __thread
75#define TMCThreadLocal __thread
79#define TMCThreadLocalStatic static
83#define TMCThreadLocalStatic static