[c++-pthreads] Re: thread-safety definition
    Ted Baker 
    baker at cs.fsu.edu
       
    Sat Jan 10 15:10:40 UTC 2004
    
    
  
> >I don't really see what you think is complicated about this.  In
> >Jason's model cancellation gets reasserted as soon as a caught
> >cancellation exception is destroyed by falling off the end of the
> >catch block without rethrowing.
> 
> What if, at that point, the thread has disabled cancellation?
First, if the thread had disabled cancellation before the the
cancellation exception was raised, you could not get to this
point.  Therefore, you are only asking about the case where a
thread disables cancellation in a cleanup routine or destructor
and does not reenable it.  In this case you still want to
"reassert" the cancellation at the next point control leaves
a handler/catch block without rethrowing.
--Ted
    
    
More information about the c++-pthreads
mailing list