[Libevent-users] announcing libev,
towards a faster and more featureful libevent
Christopher Layne
clayne at anodized.com
Sun Nov 4 21:30:10 EST 2007
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 <slamb at slamb.org> 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
More information about the Libevent-users
mailing list