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 __ROOTCLING__ && ! defined __INTEL_COMPILER
4 #define CMS_THREAD_SAFE [[cms::thread_safe]]
5 #define CMS_THREAD_GUARD(_var_) [[cms::thread_guard(#_var_)]]
6 #else
7 #define CMS_THREAD_SAFE
8 #define CMS_THREAD_GUARD(_var_)
9 #endif
10 #endif