c++, std::atomic, what is std::memory_order and how to use them?

后端 未结 5 1827
小鲜肉
小鲜肉 2020-12-04 06:46

Can anyone explain what is std::memory_order in plain English, and how to use them with std::atomic<>?

I found the reference and few

5条回答
  •  眼角桃花
    2020-12-04 07:24

    There is some plain english in GCC wiki. ;)

    http://gcc.gnu.org/wiki/Atomic/GCCMM/AtomicSync

提交回复
热议问题