in reply to Re^2: threads::shared - when to lock a hash ?
in thread threads::shared - when to lock a hash ?
Perl internally locks the variable before reading from or writing to it
Thanks, I should have thought that perl somehow protects its internal state. I couldn't find anything in threads::shared manual, so I looked into source and what I understand is that perl locks not just variable but the whole shared space, is it correct?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: threads::shared - when to lock a hash ?
by dave_the_m (Monsignor) on Oct 17, 2011 at 06:53 UTC |