I am wondering the member function of shared_ptr, weak_ptr are thread-safe or not?
shared_ptr
weak_ptr
For example:
Is the weak_ptr::expired an atomic operation?
weak_ptr::expired
Is shared_ptr<CAT> spc = aother_shared_ptr_obj; an atomic operation?
shared_ptr<CAT> spc = aother_shared_ptr_obj;
Thanks.
Aucun commentaire:
Enregistrer un commentaire