Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Perl: the Markov chain saw
 
PerlMonks  

Re: Shared variables between threads

by renodino (Curate)
on Nov 02, 2007 at 15:50 UTC ( #648668=note: print w/ replies, xml ) Need Help??


in reply to Shared variables between threads

My hunch is that Net::Pcap::open_live returns a ref of some sort, and its not threads::shared. In order to assign a ref to a shared variable, the ref must point to a shared variable.

So you're pretty much screwed unless you write your own threaded version of Net::Pcap.


Perl Contrarian & SQL fanboy


Comment on Re: Shared variables between threads

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://648668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2014-04-21 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (489 votes), past polls