Wallclock jumps with/in/and libev

Marc Lehmann schmorp at schmorp.de
Fri Dec 20 22:02:18 CET 2019


On Thu, Dec 19, 2019 at 01:59:23AM +0100, Bernd Petrovitsch <bernd at tuxoid.at> wrote:
> Can this be handled with libev (and - if yes - how) somewhat
> clean?

Since you inadvertently forced me to give this some though, I have
implemented the method using timerfd that I outlined in my last reply.

The latest CVS version at http://software.schmorp.de/pkg/libev.html
has support for this, but I plan to release libev 4.31 using this in a few
hours.

Basically, when the first ev_periodic watcher is started, libev tries
to create a timerfd and then rearms it on every timejump, rescheduling
periodics instantly.

If you want to give it a try, feel free, but also feel free to not to if
you are busy :) Feedback, of course, welcome.

Thanbks for nudging me, I planned to do this for a long time.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list