|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: Shared variables between threadsby renodino (Curate) |
| on Nov 02, 2007 at 15:50 UTC ( #648668=note: print w/ replies, xml ) | Need Help?? |
|
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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||