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

I created a thread from main listening commands from the remote. If command is an "END" command, the listening thread should notify the main to do sth. and then exit. I see Thread::signalling can notify from main thread to a child thread. How to do the reverse?

 No code yet.

Replies are listed 'Best First'.
Re: Any way to send signal from a thread to his parent thread?
by Random_Walk (Prior) on Apr 24, 2013 at 10:47 UTC

    you could use a signal queue created with Thread::Queue. The children can then post messages to main on the queue.

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!