vendredi 13 mars 2015

Are the member function of shared_ptr , weak_ptr thread-safe?


I am wondering the member function of shared_ptr, weak_ptr are thread-safe or not?


For example:


Is the weak_ptr::expired an atomic operation?


Is shared_ptr<CAT> spc = aother_shared_ptr_obj; an atomic operation?


Thanks.




Aucun commentaire:

Enregistrer un commentaire