Re: threads change
[email protected] (Artur Bergman)
| Newsgroups | perl.perl5.porters,perl.ithreads |
|---|---|
| Message-ID | <[email protected]> |
On Jul 18, 2006, at 1:52 AM, Elizabeth Mattijsen wrote: > Trying to do this by override CORE::exit is not a option, as you > can only do this at compile time (as far as I know). > > So I would favour in extra, cloned global variable that would be > checked by CORE::Exit, which would indicate whether to really exit > (), or do a threads->exit(). And have an easy way to change the > (cloned) setting of this variable with a threads class method, e.g. > thread->exit_exits_thread_only; > > You can use CORE::exit if you make sure you set it before you load the external module. Artur