anaconda_wly has asked for the wisdom of the Perl Monks concerning the following question:
I create a lot of threads, and I'm using
$SIG{INT} = \&catch_CtrlC;to handle ctrl+c exit.
I want to issue an event from catch_CtrlC to every running threads to exit elegantly(release resources before exit). How to realise this in the threads?
I mean: How to inform the thread that a Ctrl+C signal has been triggered and needs to prepare to exit?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How can perl thread exit elegantly
by Anonymous Monk on Apr 22, 2013 at 10:30 UTC | |
|
Re: How can perl thread exit elegantly
by BrowserUk (Patriarch) on Apr 22, 2013 at 11:51 UTC | |
by anaconda_wly (Scribe) on Apr 23, 2013 at 06:14 UTC | |
by BrowserUk (Patriarch) on Apr 23, 2013 at 08:03 UTC |