Re: RFC 185 (v1) Thread Programming Model

[email protected] (Steven W McDougall) Sat, 2 Sep 2000 11:55:59 -0400 (EDT)
Newsgroups perl.perl6.language.flow
Message-ID <[email protected]>
> > I dropped the I<$thread>->C<eval> call from this interface, and didn't
> > say what happens if a thread C<die>s. There are several possibilities

> I think that the try stack should unwind all the way through the new Thread
> call -- that is, that the catches for the block that the thread was started
> in should be the ones in question.

The problem with this is that the creating thread may have returned
from the C<new> call and be executing somewhere else when the created
thread C<die>s. In fact, the creating thread may *terminate* before
the created thread C<die>s.


- SWM