From b2ebd839862b60e3a71179138dd201e7c8a4fa61 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 31 Oct 2007 18:37:38 +0000 Subject: [PATCH] add prepare watcher --- ev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ev.c b/ev.c index 9a6f785..ffd19c6 100644 --- a/ev.c +++ b/ev.c @@ -561,7 +561,7 @@ void ev_loop (int flags) do { /* queue check watchers (and execute them) */ - if (checkcnt) + if (preparecnt) { queue_events ((W *)prepares, preparecnt, EV_PREPARE); call_pending (); @@ -572,7 +572,8 @@ void ev_loop (int flags) /* calculate blocking time */ - /* we only need this for !monotonic clock, but as we always have timers, we just calculate it every time */ + /* we only need this for !monotonic clockor timers, but as we basically + always have timers, we just calculate it always */ ev_now = ev_time (); if (flags & EVLOOP_NONBLOCK || idlecnt) -- 2.43.0