in reply to Re: Gtk2 ....needs thread testing on a multi-threaded computer
in thread Gtk2 ....needs thread testing on a multi-threaded computer
.....oooh i think i see the problem..... i thought $finish was the only var where locking was needed, but the main thread also resets $track{$tr}{'tot'} ...... each thread writes to it's own, but main resets them to zero
....on a single cpu machine it appears to work, probably because of its linear timing
....thanks for the report...i will have to think about how to handle locking $track{$tr}{'tot'}
if you could give a quick try at line 188
lock $track{$tr}{'tot'}; $track{$tr}{'tot'} += (rand 5) + $whip;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Gtk2 ....needs thread testing on a multi-threaded computer
by kikuchiyo (Hermit) on Dec 16, 2009 at 19:12 UTC | |
by zentara (Cardinal) on Dec 17, 2009 at 13:05 UTC |