chicken-users
[Top][All Lists]
Advanced

[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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]