CMS 3D CMS Logo

thread_safety_macros.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilites_thread_safe_macros_h
2 #define FWCore_Utilites_thread_safe_macros_h
3 #if !defined __CLING__ && !defined __INTEL_COMPILER && !defined __NVCC__
4 #define CMS_THREAD_SAFE [[cms::thread_safe]]
5 #define CMS_SA_ALLOW [[cms::sa_allow]]
6 #define CMS_THREAD_GUARD(_var_) [[cms::thread_guard(#_var_)]]
7 #else
8 #define CMS_THREAD_SAFE
9 #define CMS_SA_ALLOW
10 #define CMS_THREAD_GUARD(_var_)
11 #endif
12 #endif