Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How to get Blessed variables of a Class in the Thread Function in Perl?

by vinoth.ree (Monsignor)
on Jan 10, 2013 at 06:52 UTC ( #1012601=note: print w/replies, xml ) Need Help??


in reply to How to get Blessed variables of a Class in the Thread Function in Perl?

Hi,

Are you sure ? $self is defined? in threadFunc function?

You need to pass the $self in

threads->new(\&threadFunc);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1012601]
help
Chatterbox?
[ambrus]: Corion: read https://metacpan. org/pod/release/ MLEHMANN/AnyEvent- 7.13/lib/AnyEvent. pm#SUPPLYING-YOUR- OWN-EVENT-MODEL- INTERFACE in that case

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2016-12-08 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (141 votes). Check out past polls.