[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PTHREAD_CANCEL_HURD
From: |
Roland McGrath |
Subject: |
Re: PTHREAD_CANCEL_HURD |
Date: |
Fri, 3 Aug 2012 13:18:43 -0700 (PDT) |
> 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.
I see. So the meaning of the new type is that normal cancellation
handling is never triggered, instead the "cancelled" flag can only be
polled by the explicit check API. What do cancellable functions do,
then? Do they just fail with ECANCELED while leaving the cancelled
flag set?
I'd call this new type by a name that's descriptive of what it means,
rather than what programs are expected to use it. For example,
PTHREAD_CANCEL_POLLED.
Thanks,
Roland
- PTHREAD_CANCEL_HURD, Thomas DiModica, 2012/08/03
- Re: PTHREAD_CANCEL_HURD, Roland McGrath, 2012/08/03
- Re: PTHREAD_CANCEL_HURD, Richard Braun, 2012/08/03
- Re: PTHREAD_CANCEL_HURD,
Roland McGrath <=
- Re: PTHREAD_CANCEL_HURD, Richard Braun, 2012/08/03
- Re: PTHREAD_CANCEL_HURD, Roland McGrath, 2012/08/03
- Re: PTHREAD_CANCEL_HURD, Richard Braun, 2012/08/03
- Re: PTHREAD_CANCEL_HURD, Richard Braun, 2012/08/11
- Re: PTHREAD_CANCEL_HURD, Richard Braun, 2012/08/11
Re: PTHREAD_CANCEL_HURD, Richard Braun, 2012/08/03
Re: PTHREAD_CANCEL_HURD, Richard Braun, 2012/08/07