Unexpected periodic invocation of ev_check watcher

Marc Lehmann schmorp at schmorp.de
Fri Mar 13 07:28:55 CET 2015


On Thu, Mar 12, 2015 at 09:22:51PM +0300, Nick Zavaritsky <mejedi at gmail.com> wrote:
> I have an ev_check watcher in my event loop and it gets invoked approximately every minute or so.
> There is no other activity happening and I assume that the loop should just stay idle instead.

Check watchers are invoked on every loop iteration, regardless of cause.
What you see is likely libev's time jump check, which happens roughly once
per minute.

> Is it the intended behavior?

It's expected behaviour.

-- 
                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