3 #ifndef __CDS_COMPILER_ICL_COMPILER_BARRIERS_H
4 #define __CDS_COMPILER_ICL_COMPILER_BARRIERS_H
11 # pragma intrinsic(_ReadWriteBarrier)
12 # pragma intrinsic(_ReadBarrier)
13 # pragma intrinsic(_WriteBarrier)
15 # define CDS_COMPILER_RW_BARRIER _ReadWriteBarrier()
16 # define CDS_COMPILER_R_BARRIER _ReadBarrier()
17 # define CDS_COMPILER_W_BARRIER _WriteBarrier()
23 # define CDS_COMPILER_RW_BARRIER std::atomic_thread_fence( std::memory_order_acq_rel )
24 # define CDS_COMPILER_R_BARRIER CDS_COMPILER_RW_BARRIER
25 # define CDS_COMPILER_W_BARRIER CDS_COMPILER_RW_BARRIER
30 #endif // #ifndef __CDS_COMPILER_ICL_COMPILER_BARRIERS_H