Re: Thread Exit [was RE: threads change]

[email protected] (Dave Mitchell) Tue, 18 Jul 2006 14:44:38 +0100
Newsgroups perl.perl5.porters,perl.ithreads
Message-ID <[email protected]>
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?


-- 
Please note that ash-trays are provided for the use of smokers,
whereas the floor is provided for the use of all patrons.
    -- Bill Royston