> NOTE: In this snippet we ignore the ABA problem
The article doesn't go into details but this is subtle way to mess up writing lock free data structures:
i will do another one on just the ABA problem and how many different ways it can put your program in the hospital.