lundi 29 avril 2019

A question about the increase in std::atomic

In the process of using std::atomic, I encountered a problem, ask everyone, if execute long long i = data++ in both threads; the type of data is atomic, the value of i will not The same ?

Aucun commentaire:

Enregistrer un commentaire