Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
atomic_int.h
Go to the documentation of this file.
1#ifndef CLHEP_ATOMIC_INT_H
2#define CLHEP_ATOMIC_INT_H
3
4// ======================================================================
5//
6// Use std::atomic 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 #include <atomic>
12 #define CLHEP_ATOMIC_INT_TYPE std::atomic<int>
13#else
14 #define CLHEP_ATOMIC_INT_TYPE int
15#endif
16
17#endif