C++ Thread Safe Integer

前端 未结 6 641
醉话见心
醉话见心 2021-02-07 06:57

I have currently created a C++ class for a thread safe integer which simply stores an integer privately and has public get a set functions which use a boost::mutex to ensure tha

6条回答
  •  忘了有多久
    2021-02-07 07:01

    you can also have a look at the atomic ops section of intels Thread Building Blocks or the atomic_ops project

提交回复
热议问题