bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PTHREAD_CANCEL_HURD


From: Richard Braun
Subject: Re: PTHREAD_CANCEL_HURD
Date: Fri, 3 Aug 2012 21:55:18 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On Fri, Aug 03, 2012 at 12:50:29PM -0700, Roland McGrath wrote:
> Why add a new cancellation type?  PTHREAD_CANCEL_DEFERRED is already fine.
> You just need an extension function that is like pthread_testcancel but
> clears and returns the state instead of triggering cancellation handlers.

The problem with that is, if a Hurd server internally calls a function
that is a cancellation point, the calling thread will automatically exit
before having a chance to reply to the client. A Hurd-specific type
should allow the safe use of more standard functions.

-- 
Richard Braun



reply via email to

[Prev in Thread] Current Thread [Next in Thread]