Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^6: Why do my threads sometimes die silenty?

by BrowserUk (Patriarch)
on Sep 21, 2011 at 21:33 UTC ( [id://927236]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Why do my threads sometimes die silenty?
in thread Why do my threads sometimes die silenty?

What happens (*) if you change this:

my $signal = undef; share($signal);

To: my $signal :shared; ?

I can't test it as I don't have Thread::Pool. It isn't available as a PPM for my version of Perl and I cannot be bothered to try and track down the numerous crappy, bloated dependencies it has to install it manually, given that I would never use it.


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.

Replies are listed 'Best First'.
Re^7: Why do my threads sometimes die silenty?
by alain_desilets (Beadle) on Sep 22, 2011 at 18:10 UTC
    Changed the $signal declaration to my $signal :shared; as you suggested, and I get the same behaviour as before. The thread never returns (because of the faulty "use Blah"), but I never see the error message. Alain

      Sorry, but I cannot even begin to see how to debug Thread::Pool. You're best bet would be to raise the problem with the maintainer.


      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.
        OK, thx. Will do.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found