The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Igor (1) [Avatar] Offline

I'm trying to implement this thing and it's not working for some reason. I use compiler specific double word cas functions because I don't have standard lock free implementation. I have data race and can't figure out why. Sometimes it happens because compilers bugs that's why I check in different ones. I've checked in gcc and visual studio. Can you help me to find the problem? Here is the source - Repository
It has Makefile and CMake for convenience.

Thank you.