From: Karel Miklav <[email protected]> Subject: [Chicken-users] Problems with thread-sleep! Date: Tue, 30 Nov 2010 21:17:32 +0100
> I want to slow down a script to a number of cycles per > second with: > > (thread-sleep! (/ 1 12)) > > That however fails so I ended up importing numbers and > adapting the line to: > > (thread-sleep! (exact->inexact (/ 1 12))) > > This call usually blocks within 10 retries. I don't > have a clue what is going on and know little about > scheme but it looks like something about numbers. > These always work: > > (thread-sleep! 0.083) > > (thread-sleep! (/ (round (* > (exact->inexact (/ 1 12)) 1000)) 1000)) > > Anybody knows what is the problem? Thanks for reporting this. The internal code that converted a flonum timeout value into an exact number was broken. See commit a56037b in the "master" branch of the git repository. cheers, felix _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
