thread-safety definition

David Abrahams dave at boost-consulting.com
Sat Jan 10 13:47:18 UTC 2004


Wil Evers <wil at bogo.xs4all.nl> writes:

> David Abrahams wrote:
>
>> Dave Butenhof <David.Butenhof at hp.com> 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




More information about the c++-pthreads mailing list