mardi 6 juillet 2021

atomic smart pointers and mutex in C++20

If I want to write/read to an object from multiple threads I have to use an additional mutex for thread safety even if I use shared_pointer in C++11. Does this still apply if I use atomic_shared_pointer introduced in C++20?

Greetings Alex

Aucun commentaire:

Enregistrer un commentaire