order - 由此围栏执行的内存排序 返回值 (none). 参考 C11标准(ISO/IEC 9899:2011): 7.17.4.1 atomic_thread_fence函数(p: 278-279) 另请参阅 atomic_signal_fence(C11) 在同一个线程(函数)中执行的线程和信号处理程序之间的栅栏 | 针对atomic_thread_fence |的C ++文档 ...
C Concurrency support library Defined in header<stdatomic.h> voidatomic_thread_fence(memory_orderorder); (since C11) Establishes memory synchronization ordering of non-atomic and relaxed atomic accesses, as instructed byorder, without an associated atomic operation. For example, all non-atomic and re...