Atomic Reference Counting

后端 未结 6 478
甜味超标
甜味超标 2020-12-16 12:12

I\'m trying to understand exactly how thread-safe, atomic reference counting works, for example as with std::shared_ptr. I mean, the basic concept is simple, b

6条回答
  •  无人及你
    2020-12-16 12:58

    For std::shared_ptr a reference counting change is thread safe, but not the access to the content of the `shared_ptr.

    Regarding boost::intrusive_ptr, this is no answer.

提交回复
热议问题