Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Thread Emited Signals?

by renegadex (Beadle)
on Dec 01, 2008 at 10:30 UTC ( #727056=perlquestion: print w/replies, xml ) Need Help??

renegadex has asked for the wisdom of the Perl Monks concerning the following question:

Hi! I was wondering if Perl Threads emits a signal? I wanted to run some modules after the thread finishes running. Placing the module inside the thread is not an option... I wanted a signal that is emmited when the thread finishes.
Mabuhay Civil Engineers! :D

Replies are listed 'Best First'.
Re: Thread Emited Signals?
by cdarke (Prior) on Dec 01, 2008 at 17:18 UTC
    The best you can do is wait for the thread to complete with $thread->join(), then proceed to execute the final code.
    I don't mean to descend into semantics, but do you really mean a signal? Signals are process, not thread, based.
Re: Thread Emited Signals?
by Anonymous Monk on Dec 01, 2008 at 13:41 UTC
    No, that would be weird. You can always emit one yourself.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2022-05-17 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?