On Mon, Nov 05, 2007 at 02:46:36AM +0100, Marc Lehmann wrote:
> On Sun, Nov 04, 2007 at 04:09:08PM -0800, Scott Lamb <[EMAIL PROTECTED]> 
> wrote:
> > Have you seen the new Linux timerfd API? Where available, you can wait
> > for CLOCK_MONOTONIC and CLOCK_REALTIME events independently. Beats
> > heuristics,
>    
> How? I still need to detect time jumps. If my ev_periodic is to be scheduled
> every minute, on the minute, and somebody resets the time the timer needs to
> be rescheduled. With timerfd I would need to detetc that and remove/insert
> the timer again.
> 
> (You might have no use for periodics for timeouts, but they are designed
> to solve this very problem :)

timerfd() has good and redundant points... as far as I can tell, it's an
inversion of user<>kernel code that results in the same goal.

http://lwn.net/Articles/245688/

-cl
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to