Re: Thread Exit [was RE: threads change]
[email protected] (Elizabeth Mattijsen) Tue, 18 Jul 2006 17:07:00 +0200
| Newsgroups | perl.perl5.porters,perl.ithreads |
|---|---|
| Message-ID | <p06230931c0e2a963e4f2@[192.168.56.6]> |
At 2:44 PM +0100 7/18/06, Dave Mitchell wrote:
>On Tue, Jul 18, 2006 at 05:46:09AM -0700, Jerry D. Hedden wrote:
>> First of all, do we have a consensus on changing anything? I think so:
>> Rafeal, Artur, Liz and Jan are in favor of the general concept of exit()
>> terminating the app, and threads->exit() terminating the thread. Any
>> dissensions?
>
>No, I agree (it was originally my suggestion).
>
>> Next is the question of this being overridable such that exit() can be
>> made to just terminate just the thread. Liz and Artur are in on this.
>> Others?
>
>I'm not convinced of the need. Why can't the user just do
>
> BEGIN {
> package CORE::GLOBAL;
> sub exit { thread->exit }
> }
>
>if they really wish to override the module author's wishes?
Because that would apply to all threads then, including the main
thread? Which may not be what you want?
Liz