Re: [c++-pthreads] cancellation points report failure
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [c++-pthreads] cancellation points report failure



On Fri, Dec 19, 2003 at 05:56:50PM -0500, Ted Baker wrote:
> If you are unlucky, the implementation of thread cancellation
> will be done at the kernel level, and the check for pending
> cancellation will be done beore return from the system
> call trap.  In that case you will not get a chance to catch it
> and turn it into an exception unless you are friendly with
> the kernel maintainer.

I'd be very surprised if this were ever true.  Don't forget that
POSIX added its own pseudo-exceptions to pthreads in the form of
pthread_cleanup_push/pop.


r~