How can I do the opposite of compare_exchange and exchange if the value is different? December 9, 2022 Dec 9, 2022 12/9/22 Raymond Chen An exchange with itself has no effect on the value.