Re: pthreads: shouldn't nanosleep() be a cancellation point ?

From: Daniel Eischen <deischen_at_freebsd.org>
Date: Tue, 2 Aug 2005 10:20:49 -0400 (EDT)
On Tue, 2 Aug 2005, Poul-Henning Kamp wrote:

> In message <Pine.GSO.4.43.0508020954480.5408-100000_at_sea.ntplx.net>, Daniel Eisc
> hen writes:
> >On Tue, 2 Aug 2005, Poul-Henning Kamp wrote:
> >>
> >> Since sleep() is a cancellation point, shouldn't nanosleep() be as well ?
> >
> >nanosleep() is a cancellation point.  At least, that's the way it's
> >coded and should work.  Note that _nanosleep() isn't.  By design, if
> >libc is using _nanosleep() in places, then that wouldn't cause a
> >cancellation point.
> >
> >> (this would also cover usleep())
> >
> >Hmm, is your real complaint that usleep() is not a cancellation point?
> >usleep() should be a cancellation point, so you can fix it if you
> >want (s/_nano/nano/ and remove the namespace stuff).
>
> Right I was surprised that usleep() wasn't a cancellation point,
> I'm not sure I have a drivers license good for the namespace stuff...

I just meant "remove the #includes of namespace.h an un-namespace.h"
from libc/gen/usleep.c.

-- 
DE
Received on Tue Aug 02 2005 - 12:20:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:40 UTC