in reply to OO and Threads conflict?
Consider me a threading newbie, but is there any reason you can't just share "$self". Or maybe this:
my $self = {}; my $var : shared = 1; $self->{var} = \$var; #(Update)Then later to get or set $var: ${$self->{var}} = 0; ... while (${$self->{var}) { ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: OO and Threads conflict?
by Anonymous Monk on Sep 21, 2002 at 00:30 UTC | |
by runrig (Abbot) on Sep 21, 2002 at 00:42 UTC | |
by Anonymous Monk on Sep 21, 2002 at 00:55 UTC | |
by runrig (Abbot) on Sep 21, 2002 at 01:32 UTC |