dimanche 29 mai 2016

std::atomic

Having std::atomic<int> how can I atomically load value and reset to 0? So If I do this operation from two threads, only one receive value, another should receive 0.

Aucun commentaire:

Enregistrer un commentaire