Re: [SPAM] - Re: [c++-pthreads] Re: FW: RE: Re: I'm Lost - Email found in subject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SPAM] - Re: [c++-pthreads] Re: FW: RE: Re: I'm Lost - Email found in subject



> Yes.  This is the choice that Ada made for handling task cancellation; 
> it functions like an exception except that it cannot be caught, at least 
> not by user code.

Yes, and the POSIX Ada binding chose to ignore the C thread
cancellation API.  It was both freed and forced to do so because
the Ada language standard provides equivalent (but not
interoperable) functionality, based on a unified view of a task
abort as a special kind of exception.

> Both the Ada approach and the re-cancellation approach avoid this 
> problem of accidentally losing the cancellation request.

Right.

--Ted