[c++-pthreads] cancellation points report failure
Richard Henderson
rth at redhat.com
Fri Dec 19 23:15:22 UTC 2003
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~
More information about the c++-pthreads
mailing list