in reply to Accessing class data from a second thread
you have to create the variable as shared using the shared attribute, in the form of
my $CurrentTagList : shared = TagList->new();
Also within the Taglist class you have to use threads::shared's bless function so blessing propagates across all threads
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Accessing class data from a second thread
by Anonymous Monk on Jun 21, 2011 at 02:25 UTC | |
|
Re^2: Accessing class data from a second thread
by Anonymous Monk on Jun 20, 2011 at 18:13 UTC | |
by Anonymous Monk on Jun 20, 2011 at 18:55 UTC | |
by Anonymous Monk on Jun 20, 2011 at 19:48 UTC |