Geant4-11
thread_local.h
Go to the documentation of this file.
1#ifndef CLHEP_THREAD_LOCAL_H
2#define CLHEP_THREAD_LOCAL_H
3
4// ======================================================================
5//
6// Use thread_local when the compiler declares it uses the C++11 standard
7//
8// ======================================================================
9
10#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7) || __clang__ || WIN32
11 #define CLHEP_THREAD_LOCAL thread_local
12#else
13 #define CLHEP_THREAD_LOCAL
14#endif
15
16#endif