chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] thread-sleep! for less than a second


From: Kon Lovett
Subject: Re: [Chicken-users] thread-sleep! for less than a second
Date: Fri, 12 Jan 2007 14:00:25 -0800

On Jan 12, 2007, at 1:36 PM, minh thu wrote:

Hi,

Question again, my apologies ;)

Is it possible to have a thread sleep some milliseconds ?

thread-sleep! (the seconds do not need to be a whole number)


I want to have a thread poll xlib for some events but not in tight
loop neither only every second (thus something in between). I guess
also than thread-yield! gives cpu to other threads but still makes a
tight loop in case the other threads want to sleep!

I can't use c sleeping function, otherwise the whole chicken runtime
will go to bed.

Is there any workaround ? Maybe I can add the feature to chicken itself ?

Thanks,
thu


_______________________________________________
Chicken-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/chicken-users





reply via email to

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