3 ms·
I think what you are missing with the ABA problem is that it doesn't apply as it is the expected behaviour from the point of view of the programmer.
by tomjen3 14y ago
I think what you are missing with the ABA problem is that it doesn't apply as it is the expected behaviour from the point of view of the programmer.
- haberman 14y agoIn this case it doesn't make a difference, but in many cases it does, which is a reason to avoid CAS() if you can.