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

后端 未结 0 345
一个人的身影
一个人的身影 2020-12-23 05:49

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         


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