7 Jul 16:44
Re: after ids
From: Kevin Kenny <kennykb@...>
Subject: Re: after ids
Newsgroups: gmane.comp.lang.tcl.core
Date: 2008-07-07 14:44:15 GMT
Subject: Re: after ids
Newsgroups: gmane.comp.lang.tcl.core
Date: 2008-07-07 14:44:15 GMT
> Finding a function that returns an monotonic time reference on a > system does not solve the problem of implementing relative timers in > Tcl however, you also need a way for the notifier to wait for a > relative time interval, e.g. the current threaded unix notifier > waiting is based on pthread_cond_timedwait(), which uses absolute > time (c.f. Tcl_ConditionWait()). Is it really true that pthread_cond_timedwait uses an absolute time? That would imply that every pthreads process that's waiting for a timer will freeze if the system clock ever jumps backwards. Do other things freeze on Darwin in that case? It's not, strictly speaking, necessary to have functions that wait for both absolute and relative times. It's good enough if a wait can be interrupted when the system clock is reset. WM broadcasts a WM_SETTINGSCHANGED in that case. -- -- 73 de ke9tv/2, Kevin ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08
RSS Feed