Relative Content

Tag Archive for c++c++20stdatomic

How does an atomic<shared_ptr> work internally?

How does an atomic<shared_ptr<>> work internally ? I’m not asking for the mechanics of the control block alongside with the stored data, which is easy to imagine for me, but for the atomic<shared_ptr<>> itself.
For VC++ the code for the atomic store is that: