Re: thread-safety definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: thread-safety definition
- To: c++-pthreads@xxxxxxxxxxxxxxxx
- Subject: Re: thread-safety definition
- From: David Abrahams <dave@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 10 Jan 2004 08:47:18 -0500
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