Just another Perl shrine | |
PerlMonks |
Re: Perl seg fault while joining threadsby BrowserUk (Patriarch) |
on Jul 07, 2015 at 22:04 UTC ( [id://1133649]=note: print w/replies, xml ) | Need Help?? |
So is there a way to tell perl not to copy a specific variable while creating new threads ? I don't have Net::AMQP::RabbitMQ, so this is untested, but if your description is accurate, it ought to work. Just re-structure your code slightly:
In general, it is better to start your threads before you create/allocate anything that is only used by your main thread. See threads: spawn early to avoid the crush. for more details. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!
In Section
Seekers of Perl Wisdom
|
|