This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

如何添加内存屏障



如 代码

int  a  b;

a = 0x0;

// 添加内存屏障

b = 0x1;

如何在a b 赋值直接添加内存屏障,保证a 赋值一定在b赋值之前