The atomic thing in shared_ptr is not the shared pointer itself, but the control block it points to.
Meaning that as long as you don't mutate the shared_ptr across multiple threads, you are ok.
The atomic thing in shared_ptr is not the shared pointer itself, but the control block it points to.
Meaning that as long as you don't mutate the shared_ptr across multiple threads, you are ok.
Leave a Comment