Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://648668]
help
Chatterbox?
[erix]: yes. Deplorable marto, deplorable.
[marto]: the situation seemed similar to this one, majority of the contributrions are nonsense, doesn't address any questions ...
[marto]: meh, I've been called worse :P
[marto]: deplorable is actually not bad for this point in the day :P
[erix]: we aim to satisfy
[erix]: churches are good excuses for large-scale architecture -- which is nice
[marto]: not to be confused with Chvrches

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-07-28 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (431 votes). Check out past polls.