From ce8dc1a03da38c405583d4673d8da12c2a26373e Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Jul 2009 09:11:20 +0000 Subject: *** empty log message *** --- ev.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'ev.c') diff --git a/ev.c b/ev.c index 421ef28..595d1ef 100644 --- a/ev.c +++ b/ev.c @@ -1413,6 +1413,7 @@ loop_init (EV_P_ unsigned int flags) mn_now = get_clock (); now_floor = mn_now; rtmn_diff = ev_rt_now - mn_now; + invoke_cb = ev_invoke_pending; io_blocktime = 0.; timeout_blocktime = 0.; @@ -1787,8 +1788,8 @@ ev_invoke (EV_P_ void *w, int revents) EV_CB_INVOKE ((W)w, revents); } -inline_speed void -call_pending (EV_P) +void +ev_invoke_pending (EV_P) { int pri; @@ -2040,7 +2041,7 @@ ev_loop (EV_P_ int flags) loop_done = EVUNLOOP_CANCEL; - call_pending (EV_A); /* in case we recurse, ensure ordering stays nice and clean */ + invoke_cb (EV_A); /* in case we recurse, ensure ordering stays nice and clean */ do { @@ -2063,7 +2064,7 @@ ev_loop (EV_P_ int flags) if (forkcnt) { queue_events (EV_A_ (W *)forks, forkcnt, EV_FORK); - call_pending (EV_A); + invoke_cb (EV_A); } #endif @@ -2071,7 +2072,7 @@ ev_loop (EV_P_ int flags) if (expect_false (preparecnt)) { queue_events (EV_A_ (W *)prepares, preparecnt, EV_PREPARE); - call_pending (EV_A); + invoke_cb (EV_A); } /* we might have forked, so reify kernel state if necessary */ @@ -2152,7 +2153,7 @@ ev_loop (EV_P_ int flags) if (expect_false (checkcnt)) queue_events (EV_A_ (W *)checks, checkcnt, EV_CHECK); - call_pending (EV_A); + invoke_cb (EV_A); } while (expect_true ( activecnt -- cgit v1.2.3