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
- To: Ted Baker <baker@xxxxxxxxxx>
- Subject: Re: [c++-pthreads] cancellation points report failure
- From: Richard Henderson <rth@xxxxxxxxxx>
- Date: Fri, 19 Dec 2003 15:15:22 -0800
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~