Re: [c++-pthreads] Restating the Jason model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [c++-pthreads] Restating the Jason model
- To: Dave Butenhof <David.Butenhof@xxxxxx>
- Subject: Re: [c++-pthreads] Restating the Jason model
- From: Alexander Terekhov <boo@xxxxxxxxxxx>
- Date: Tue, 13 Jan 2004 16:11:09 +0100
Dave Butenhof wrote:
[...]
> I'm not entirely sure I understand what you mean here by '"intelligent"
> cancel request delivery". If we discussed it before I don't recall that
> phrase.
I mean "bool std::expected_exception<T>() throw()" thing. "Intelligent"
cancel request delivery means that cancellation points and async-cancel
regions shall throw (deliver) std::thread_cancel_request only when
cancellation is enabled (cancel state is equal to PTHREAD_CANCEL_ENABLE)
AND "std::expected_exception<std::thread_cancel_request>()" is true at
throw point (i.e. there's reachable catch handler for it in the dynamic
context). Throw specs (dtors would have implicit throw() imposed on
them) would act like "fences"; they should NOT have catch(...) effect.
regards,
alexander.