How guarantees compiler not to optimize within a guarded code in C++

前端 未结 0 1952
旧巷少年郎
旧巷少年郎 2021-01-11 15:14

If I use a code locked by a mutex and guarded by e.g. a scoped_lock, the instruction order can be guaranteed. However, I do not really understand, why the varia

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