What is the difference between using explicit fences and std::atomic?

后端 未结 0 1854
星月不相逢
星月不相逢 2020-12-23 05:31

Assuming that aligned pointer loads and stores are naturally atomic on the target platform, what is the difference between this:

// Case 1: Dumb pointer, man         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题