Is volatile int in C as good as std::atomic of C++0x?

后端 未结 6 732
醉话见心
醉话见心 2020-12-14 17:55

I need to have atomic variables in my program. Previously I was using std::atomic, but the platform in which I\'m working now does not have a g++ com

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-14 18:45

    I've seen you asking about GCC in some comments, here you go.

    GCC's Built-in functions for atomic memory access

提交回复
热议问题