Quantcast
Channel: gcc builtin atomic compare and exchange - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by R.. GitHub STOP HELPING ICE for gcc builtin atomic compare and...

Sure, but you just have to call it in a loop. On each loop iteration, read the old value. If it's null, break out of the loop and return failure. If it's not null, use that old value as the "expected"...

View Article



gcc builtin atomic compare and exchange

I want to use the gcc builtin function __atomic_compare_exchange() but I need it slightly different than it is specified as and it I am unsure it`s possible to achieve.the function...

View Article
Browsing all 2 articles
Browse latest View live


Latest Images