Subj : Re: pthread function behavior in C++ program To : comp.programming.threads From : Alexander Terekhov Date : Sat Jun 11 2005 08:58 pm Chris Vine wrote: [...] > How far down the stack is an exception thrown by virtue of a call to > pthread_cancel() expected to go in a well-designed system, for those which > expose cancellations as exceptions (as I believe NPTL now does when > executing in a C++ environment). NPTL doesn't expose thread cancellation and thread exit as exceptions, it uses brain-damaged "forced unwinding". > Should it propagate to the point at which > the thread ceases executing (terminate the thread), Yes, unless you catch and finalize it instead of re-thowing. > or should it go further? No. regards, alexander. .