mardi 14 juin 2022

What is the difference between atomic_int and int? [duplicate]

Isn't it thread safe when only write and read int in critical section between threads? So What is the difference between atomic_int and int? Is 'int' not atomically?

Aucun commentaire:

Enregistrer un commentaire