Results 2 comments of Mer

应该是brew不允许sudo执行,但是插件安装需要sudo,所以就像上面说的自己先把依赖安装了,注释掉依赖安装部分,然后sudo执行就好

> 注意 (3) 处的 compare_exchange_strong 的内存顺序是 memory_order_relaxed, 所以 (2) 与 (3) 并不构成 synchronizes-with 的关系. 也就是说, 当循环 (3) 退出时, 并不能保证 thread2 能读到 data.at(0) 为 42. 3.4 节中这里的说法是错误的吧,实际上 thread2 在 RMW 操作后读...