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}) { ...
In reply to Re: OO and Threads conflict?
by runrig
in thread OO and Threads conflict?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |