![]() |
|
"be consistent" | |
PerlMonks |
Re: Threads and object accessby Nitrox (Chaplain) |
on Dec 11, 2002 at 22:34 UTC ( #219200=note: print w/replies, xml ) | Need Help?? |
I was afraid of that BrowserUk.
So for the time being can anyone suggest a viable alternative? The child thread simply sits in a while loop polling the serial port. When data is received the child then needs to be able to access $HS as is $HS->GotEvent(). Seeing as the child can't make the call directly what's the best way to instruct the parent to make the call. Or is it possible for a child thread to explicitly call a subroutine in the parent thread instead of it's own? -Nitrox
In Section
Seekers of Perl Wisdom
|
|