Re: [c++-pthreads] Restating the Jason model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [c++-pthreads] Restating the Jason model
- To: Dave Butenhof <David.Butenhof@xxxxxx>
- Subject: Re: [c++-pthreads] Restating the Jason model
- From: Jason Merrill <jason@xxxxxxxxxx>
- Date: Thu, 15 Jan 2004 16:31:44 -0500
On Wed, 14 Jan 2004 08:04:06 -0500, Dave Butenhof <David.Butenhof@xxxxxx> wrote:
>>Jason Merrill wrote:
>>>There's no way to use the same rules for both, since we can't re-assert
>>>deferred exit.
> It's just as easy to re-assert exit as cancel; instead of calling
> pthread_cancel() on the current thread when the cancel exception is
> destroyed, you call pthread_exit() when the exit exception is
> destroyed. You'd need to retain the original exit status (void*) value,
> but there's no reason that can't be part of the exit exception object.
Good point. I like that better than terminate().
Jason