이 파일의 문서화 페이지로 가기
36 #if defined (G4MULTITHREADED)
37 #if ( defined(__MACH__) && defined(__clang__) && defined(__x86_64__) ) || \
38 ( defined(__linux__) && defined(__clang__) )
39 # define G4ThreadLocalStatic static thread_local
40 # define G4ThreadLocal thread_local
41 #elif ( (defined(__linux__) || defined(__MACH__)) && \
42 !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__>=4 && __GNUC_MINOR__<9))
43 # define G4ThreadLocalStatic static __thread
44 # define G4ThreadLocal thread_local
45 #elif ( (defined(__linux__) || defined(__MACH__)) && \
46 !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__>=4 && __GNUC_MINOR__>=9) || __GNUC__>=5 )
47 # define G4ThreadLocalStatic static thread_local
48 # define G4ThreadLocal thread_local
49 #elif ( (defined(__linux__) || defined(__MACH__)) && \
50 defined(__INTEL_COMPILER) )
51 #if __INTEL_COMPILER>=1500
52 # define G4ThreadLocalStatic static thread_local
53 # define G4ThreadLocal thread_local
55 # define G4ThreadLocalStatic static __thread
56 # define G4ThreadLocal __thread
59 # define G4ThreadLocalStatic static thread_local
60 # define G4ThreadLocal thread_local
62 # define G4ThreadLocalStatic static thread_local
63 # define G4ThreadLocal thread_local
65 # error "No Thread Local Storage (TLS) technology supported for this platform. Use sequential build !"
68 # define G4ThreadLocalStatic static
69 # define G4ThreadLocal