So, I thought that it wasn’t possible to communicate between threads in different blocks
but then I discover atomic functions (particularly atomicCAS()) which the docs just say
“The operation is atomic in the sense that it is guaranteed to be performed without
interference from other threads.”
Which suggests that it operates on ALL threads irrespective of blocks, is that correct?
Doesn’t that mean you can communicate between between threads in different blocks ?