[cpp-threads] Re: Exception propogation across threads

Peter Dimov pdimov at mmltd.net
Wed Feb 21 21:19:07 GMT 2007


Boehm, Hans wrote:

>> Unwind the stack, terminate the thread and throw some kind of
>> unexpected thread-death exception in the joining thread. Less
>> severe than (i) and (ii), less compiler magic or modification
>> of exceptions needed than
>> (iii) and (iv), and more usable than (v).
>> 
> My recollection from the last discussion is that this has the
> (probably fatal?) flaw that the join may not be executed until next
> month.  Thus you could effectively be hiding the exception for a
> month.  Since it escaped the thread, it was presumably not completely
> handled, so we are now letting the application run in a bad state for
> a month, potentially wreaking all sorts of havoc.
> 
> It seems to me that the best choice is essentialy (i), with enough
> facilities to let libraries implement other policies as needed.

I agree.



More information about the cpp-threads mailing list