This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: nanosleep() patch
- From: Corinna Vinschen <cygwin-patches at cygwin dot com>
- To: Cygwin-Patches <cygwin-patches at cygwin dot com>
- Date: Tue, 21 Jan 2003 16:58:42 +0100
- Subject: Re: nanosleep() patch
- References: <20030117192853.GA1164@tishler.net>
Hi Jason,
On Fri, Jan 17, 2003 at 02:28:53PM -0500, Jason Tishler wrote:
> Attached is a patch that implements nanosleep() by attempting to
> reuse the current sleep() implementation which seems to provide the
> necessary functionality.
>
> I'm not sure if there is a better way to convey the fact that
> sleep_worker() was interrupted than my current implementation.
> Comments on this issue and the patch in general are welcome.
I'm wondering if we could do without an extra function sleep_worker()
and let nanosleep() be the basic implementation. So sleep() as well
as usleep() could call nanosleep(). Isn't that done that way in the
Linux kernel, too?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.