C++11

// <atomic> ​
extern "C" void atomic_thread_fence (memory_order sync) noexcept;

通用内存依赖次序(Order-dependent)的栅栏同步原语(Fence synchronization primitive)