[c++-pthreads] Restating the Jason model
Jason Merrill
jason at redhat.com
Thu Jan 15 21:31:44 UTC 2004
On Wed, 14 Jan 2004 08:04:06 -0500, Dave Butenhof <David.Butenhof at hp.com> 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
More information about the c++-pthreads
mailing list