From 4a0de3e7e01346711cdcbf919d840b3cbbff8096 Mon Sep 17 00:00:00 2001
From: root
NOTE: This callback MUST NOT stop or destroy the periodic or any other
periodic watcher, ever, or make any event loop modifications. If you need
to stop it, return now + 1e30
(or so, fudge fudge) and stop it afterwards.
Also, <this callback must always return a time that is later than the
-passed now
value >. Not even now
itself will be ok.
Its prototype is c<ev_tstamp (*reschedule_cb)(struct ev_periodic *w, -ev_tstamp now)>, e.g.:
+Also, this callback must always return a time that is later than the
+passed now
value. Not even now
itself will be ok.
Its prototype is ev_tstamp (*reschedule_cb)(struct ev_periodic *w,
+ev_tstamp now)
, e.g.:
static ev_tstamp my_rescheduler (struct ev_periodic *w, ev_tstamp now) { return now + 60.; -- cgit v1.2.3