摘要: int x = 0; int y = 0; int r0, r1; //cpu1 void f1() { x = 1; std::atomic_thread_fence(std::memory_order_acquire); r0 = y; } //cpu2 void f2() { y = 1; s 阅读全文
posted @ 2023-04-23 21:10 woodx 阅读(171) 评论(0) 推荐(0) 编辑