| 4 | | #if ( defined (VMC_MULTITHREADED) ) |
| 5 | | #if ( ( defined(__MACH__) && defined(__clang__) && defined(__x86_64__) ) || \ |
| 6 | | ( defined(__MACH__) && defined(__GNUC__) && __GNUC__>=4 && __GNUC_MINOR__>=7 ) || \ |
| 7 | | defined(__linux__) || defined(_AIX) ) && ( !defined(__CINT__) ) |
| 8 | | // Multi-threaded build: for POSIX systems |
| 9 | | #include <pthread.h> |
| 10 | | #define TMCThreadLocal __thread |
| | 13 | |
| | 14 | #if ( defined (VMC_MULTITHREADED) ) |
| | 15 | #if ( ( defined(__MACH__) && defined(__clang__) && defined(__x86_64__) ) || \ |
| | 16 | ( defined(__MACH__) && defined(__GNUC__) && __GNUC__>=4 && __GNUC_MINOR__>=7 ) || \ |
| | 17 | defined(__linux__) || defined(_AIX) ) && ( !defined(__CINT__) ) |
| | 18 | // Multi-threaded build: for POSIX systems |
| | 19 | #include <pthread.h> |
| | 20 | #define TMCThreadLocal __thread |
| | 21 | #else |
| | 22 | //# error "No Thread Local Storage (TLS) technology supported for this platform. Use sequential build !" |
| | 23 | #define TMCThreadLocal |
| | 24 | #endif |