chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] (thread-sleep!)


From: tonyg
Subject: [Chicken-users] (thread-sleep!)
Date: Fri, 9 Aug 2002 15:41:00 +0100
User-agent: Mutt/1.2.5i

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.)

Tony
-- 
Monkeys high on math -- some of the best comedy on earth
        - Tom Lord, regarding comp.lang.scheme



reply via email to

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