Commit eb93046b authored by Lynn Garren's avatar Lynn Garren

we now generate thread_local.h

parent 17a7ad5c
2016-11-18 Lynn Garren <garren@fnal.gov>
* cmake: Add the ability to build single threaded if desired.
Multihreading remains enabled by default.
Use cmake -DCLHEP_SINGLE_THREAD=ON to disable multithreading.
* Utility/thread_local.h will be generated appropriately
2016-11-11 Gabriele Cosmo <Gabriele.Cosmo@cern.ch>
* Random/Random/mixmax.h: corrected value of SPECIALMUL in mixmax.h to correspond to
......
2016-11-18 Lynn Garren <garren@fnal.gov>
* Utility/thread_local.h will be generated as part
of enabling either a single or multi threaded build
==============================
26.08.16 Release CLHEP-2.3.3.2
==============================
......
#ifndef CLHEP_THREAD_LOCAL_H
#define CLHEP_THREAD_LOCAL_H
// ======================================================================
//
// Use thread_local when the compiler declares it uses the C++11 standard
//
// ======================================================================
#ifdef CLHEP_SINGLE_THREAD
#define CLHEP_THREAD_LOCAL
#else
#if __cplusplus >= 201103L
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 7)
#define CLHEP_THREAD_LOCAL thread_local
#elif __clang__
#if __has_feature(cxx_thread_local)
#define CLHEP_THREAD_LOCAL thread_local
#else
#define CLHEP_THREAD_LOCAL
#endif
#else
#define CLHEP_THREAD_LOCAL
#endif
#else
#define CLHEP_THREAD_LOCAL
#endif
#endif
#endif // CLHEP_THREAD_LOCAL_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment