[timers] - triggering at the same time

Neeraj Rai rneeraj at yahoo.com
Sun Dec 18 03:25:53 CET 2011

Let me refine the questions from the last email.
1. Is there a libev function exposed that can be called to check if
 there is already a timer at a given offset ?
 I see that ev_timer_stop adjustheap does something to find the watcher.
 But not sure if it is by offset.

3. If I need to detect offset collision, would a heap by offset be the
   best way ?
4. If I want to use prepare, I assume it is invoked per loop iteration.
   If so, how so I loop thru all the timers toinvoke the callbacks.
   I probably need to issue ev_timer_stop on each that is invoked?
  The prepare example seems to deal with io events.
Please feel free to point me code/docs if answers to any of these should 
be obvious.


More information about the libev mailing list