This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] clock_nanosleep(2)
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Thu, 21 Jul 2011 12:37:35 +0200
- Subject: Re: [PATCH] clock_nanosleep(2)
- References: <1311126880.7796.9.camel@YAAKOV04>
- Reply-to: cygwin-patches at cygwin dot com
On Jul 19 20:54, Yaakov (Cygwin/X) wrote:
> This patchset implements the POSIX clock_nanosleep(2) function:
>
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html
> http://www.kernel.org/doc/man-pages/online/pages/man2/clock_nanosleep.2.html
>
> In summary, clock_nanosleep(2) replaces nanosleep(2) as the primary
> sleeping function, with all others rewritten in terms of the former. It
> also restores maximum precision to hires_ms::resolution(), saving the
> <5000 100ns check for the one place where resolution is rounded off.
>
> Patches for newlib, winsup/cygwin, and winsup/doc attached. I would
> appreciate a careful look at this one.
Given our current discussion to change cancelable_wait, does it make
sense to review this patch? AFAICs the clock_nanosleep function will
have to be changes quite a bit, right?
Something else occured to me, but I think we should do this in an extra
step, if at all. IMO the family of sleep functions should be moved out
of signal.cc into times.cc. It just seems to belong there.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat