chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] (thread-sleep!)


From: felix
Subject: Re: [Chicken-users] (thread-sleep!)
Date: Fri, 9 Aug 2002 21:45:26 +0200

>Currently, thread-sleep! uses CPU time, not wall-clock time, to figure
>out when to reawaken the thread, which seems odd. I've taken a look at
>srfi-18, and it doesn't clearly state that wall-clock time should be
>used, but IMHO wall-clock time is the most sensible interpretation,
>and should be used.
>
>If others agree, could we get thread-sleep! changed to use, say
>gettimeofday(2) instead of clock(3)?
>
>(Actually, (current-time) and (time->seconds) should also be
>wall-clock-time, IMO. However, since they use a common mechanism, both
>thread-sleep! and current-time et al can be changed at once.)


Yes, that's sensible. Basically the only thing that changes
is to call '(##sys#fudge 16)' instead of `(##sys#fudge 6)'.


cheers,
felix





reply via email to

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