in reply to Re^3: a question on sharing data structures across threads
in thread a question on sharing data structures across threads
my %el : shared = ( 'data' => $scalar_data, 'atime' => time, 'deleted' => 0, 'modified' => 0 ); $planets{$some_id} = \%el; lock $planets{$some_id}; # results in an error: "lock can only be used on shared values."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: a question on sharing data structures across threads
by BrowserUk (Patriarch) on Oct 09, 2007 at 05:42 UTC | |
|
Re^5: a question on sharing data structures across threads
by BrowserUk (Patriarch) on Oct 09, 2007 at 07:14 UTC | |
by TOD (Friar) on Oct 09, 2007 at 10:04 UTC |