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

后端 未结 0 1827
星月不相逢
星月不相逢 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         


        
相关标签:
回答
  • 消灭零回复
自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题