Subj : Re: pthread function behavior in C++ program To : comp.programming.threads From : Torsten Robitzki Date : Sun Jun 12 2005 12:57 pm >>There are cases, where one realy don't care if an error occures or not >>and this can be expressed with an exception handler who catches all >>exceptions without rethrowing them. Such former legal code would now >>cause every now and then the program to terminate if a thread get >>canceled? Than not runnung destructors and exception handlers at all >>seems to be more predictable to me. > > > It's better because it's only one step from the "right thing". They only > need to re-cancel (not rethrow!) instead of terminating. Not running > destructors and exception handlers will "only" leak and deadlock, but such > an implementation would be much more difficult to fix. What do you have in mind when you distinct between "re-cancel" and "rethrow"? If I have to choose between an implementation that terminates my application every once and then or let my application leak like a sieve I would choose neither of them ;-) but try to find a solution without cancellation. regards Torsten .