What do you get when you run this program ikegami?
I get one single line of output, i other words, it doesn't work
Like BrowserUk says, you lock the variable in the outer scope, and that lock is never released -- not an improvement
In reply to Re^3: Threads sharing global variable
by beech
in thread Threads sharing global variable
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |