[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] posix-extras sleep
From: |
Jim Ursetto |
Subject: |
Re: [Chicken-users] posix-extras sleep |
Date: |
Wed, 20 Feb 2013 11:35:01 -0600 |
On Feb 20, 2013, at 3:57, J Altfas <address@hidden> wrote:
> On Tues, 19 Feb 2013 15:13:30 -0600> Jim Ursetto wrote:
>
> > Hmm, I just realized scheduler.scm relies on nanosleep(3) on UNIX, so I
> > guess it is safe to use in posix-extras as well. I'll change posix-extras
> > to use nanosleep shortly.
> >
>
> After all the discussion and further study the merits of nanosleep are
> clearer, and it nicely accommodates the fractional time specifier idea--it
> really is a good match.
>
> Because the idea was interesting I took the liberty to attempt a simple
> implementation of a nanosleep-based scheme sleep function:
Indeed, yesterday I changed posix-extras' sleep to use nanosleep() in 0.1.5.
The implementation is essentially the same as yours but it also uses Sleep() on
Windows.
Jim
- [Chicken-users] (file-select ...) and compiler warnings, J Altfas, 2013/02/17
- Re: [Chicken-users] (file-select ...) and compiler warnings, Jim Ursetto, 2013/02/17
- Re: [Chicken-users] (file-select ...) and compiler warnings, J Altfas, 2013/02/18
- Re: [Chicken-users] (file-select ...) and compiler warnings, Jim Ursetto, 2013/02/18
- Re: [Chicken-users] (file-select ...) and compiler warnings, J Altfas, 2013/02/18
- Re: [Chicken-users] posix-extras sleep, Jim Ursetto, 2013/02/19
- Re: [Chicken-users] posix-extras sleep, Jim Ursetto, 2013/02/19
- Message not available
- Message not available
- Re: [Chicken-users] posix-extras sleep, J Altfas, 2013/02/20
- Re: [Chicken-users] posix-extras sleep,
Jim Ursetto <=
- Re: [Chicken-users] (file-select ...) and compiler warnings, John Cowan, 2013/02/19
Re: [Chicken-users] (file-select ...) and compiler warnings, Felix, 2013/02/18