Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
eb93046b
Commit
eb93046b
authored
Nov 18, 2016
by
Lynn Garren
Browse files
we now generate thread_local.h
parent
17a7ad5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
eb93046b
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
...
...
Utility/ChangeLog
View file @
eb93046b
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
==============================
...
...
Utility/Utility/thread_local.h
deleted
100644 → 0
View file @
17a7ad5c
#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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment