mardi 7 juillet 2020

Is counter in std::shared_ptr atomic?

At the interview, I was asked what is the peculiarity of the counter in std::shared_ptr. However, I have heard opinions that std::shared_ptr doesn't work well with multithreading. What is true?

Aucun commentaire:

Enregistrer un commentaire