dimanche 26 juin 2022

c++11: how to produce "spurious failures" upon compare_exchange_weak?

Is there a way that we can write some code to produce a "spurious failures" for the "weak" version of compare_exchange? While the same code should work well for compare_exchange_strong?

I wish to see the real difference between the "weak" and "strong" version of 2 apis, any sample for it?

Thanks a lot!

Aucun commentaire:

Enregistrer un commentaire