Mq-b / Loser-HomeWork

卢瑟们的作业展示,答案讲解,以及一些C++知识
https://mq-b.github.io/Loser-HomeWork/
Apache License 2.0
573 stars 128 forks source link

Update Matrix-A.cpp 更优雅的设置内存定序 #293

Closed Matrix-A closed 5 months ago

Matrix-A commented 5 months ago

修改 std::atomic_flagstd::atomic_thread_fence

https://gcc.godbolt.org/z/T4hTGcf16

rsp4jack commented 5 months ago

i can't make a --ff-only merge using GitHub WebUI, aww man

rsp4jack commented 5 months ago

Fast-forwarded.