diff options
author | root <root> | 2007-10-31 18:37:38 +0000 |
---|---|---|
committer | root <root> | 2007-10-31 18:37:38 +0000 |
commit | b2ebd839862b60e3a71179138dd201e7c8a4fa61 (patch) | |
tree | a1d7cbc5e6bcdb2fadccd3d1fc0b24f34f6714b5 /ev.c | |
parent | 469af6002e7d33bcc351c1113afb188c3c246b91 (diff) |
add prepare watcher
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |