in reply to Re^3: Locking hash values
in thread Locking hash values
For more see perldoc threads::shared.... use threads; use threads::shared; ... my $href : shared; $href = &share({}); ... # Lock block { lock $href; $href->{mykey} = 'myval'; } ...
- BR
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Locking hash values
by ikegami (Patriarch) on Dec 18, 2006 at 19:45 UTC | |
by bucky0 (Initiate) on Dec 18, 2006 at 21:51 UTC |