On Thu, Dec 19, 2019 at 01:59:23AM +0100, Bernd Petrovitsch <[email protected]> 
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
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/libev

Reply via email to