Re: threads change

[email protected] (Elizabeth Mattijsen)
Newsgroups perl.perl5.porters,perl.ithreads
Message-ID <p062309c8c0e2563c678b@[192.168.1.105]>
At 2:07 AM -0700 7/18/06, Artur Bergman wrote:
>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.

True, but generally you just "use" code in your program, which means 
the code is used by the main thread already, before you start the 
thread.

Which is the reason I once wrote Thread::Use.


Liz
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.