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? - Wil