// Gcc on x86
inline void MemoryBarrier() {
// See http://gcc.gnu.org/ml/gcc/2003-04/msg01180.html for a discussion on
// this idiom. Also see http://en.wikipedia.org/wiki/Memory_ordering.
__asm__ __volatile__("" : : : "memory");
}
' asm volatile (“”:::“memory”)'只能解析编译时内存排序,我无法理解如何解析运行时内存排序