C++ Thread Safe Integer

前端 未结 6 646
醉话见心
醉话见心 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:02

    There is the C++0x atomic library, and there is also a Boost.Atomic library under development that use lock free techniques.

提交回复
热议问题