Easy, man. I have never met morons here, except, probably,
myself.
My apologies if I got you wrong!
So you code is incorrect and lets show it. When you give your
code for eating to the compiler, it can does whatever it want
but guarantee your program will work as you have written it
(except special cases like copy construction elimination) and
it doesn't assume every variable can be accessed from other
threads. E.g. here is you code with unwinded loop in SSA
(static single assignment) form:
...
Damn it, you are right I did not think this through, somehow
thought the use in addrOf is enough, which is of course crap.
Thank's a lot for your time, I'll fix this ASAP. It is so
obviously wrong now, it really hurts. Ouch.
Thanks again!