Re: thread-safety definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: thread-safety definition



Wil Evers <wil@xxxxxxxxxxxxxx> writes:

> David Abrahams wrote:
>
>> Dave Butenhof <David.Butenhof@xxxxxx> writes:
>>
>>>Besides, "reasserting cancel" in all the right places and no other
>>>places sounds like one of those projects that ends up being a lot
>>>more subtle and error-prone than anyone ever expects. ;-)
>> I don't really see what you think is complicated about this.  In
>> Jason's model cancellation gets reasserted as soon as a caught
>> cancellation exception is destroyed by falling off the end of the
>> catch block without rethrowing.
>
> What if, at that point, the thread has disabled cancellation?

Naturally, no cancellation exceptions are thrown until cancellation is
re-enabled (I think).

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com