RE: Thread Exiting

[email protected] ("Jerry D. Hedden") Thu, 20 Jul 2006 07:58:32 -0700
Newsgroups perl.perl5.porters,perl.ithreads
Message-ID <20060720075832.fb30e530d17747c2b054d625b8945d88.0164a756ea.wbe@email.secureserver.net>
Eric Rybski asked:
> What if "use threads 'exit' => 'thread';" could be
> restricted to threads created within the namespace (i.e.
> package) of an executed function/method?  And the only
> exception to this being if use threads 'exit' =>
> 'threads';" were called in the main:: namespace, exit()
> would be globally overridden for threads across ALL
> packages (no matter how the packages used threads
> themselves)?

I don't know how this would be done.  Feel free to take a
crack at implementing such a scheme after I post my changes.
(Although, I don't think it's needed, and question if it's
even a good idea.)

> This way, module authors could use it as a nice shortcut;

Yuck.  I'm going to put words in the POD to discourage this.