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