summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2009-07-09 09:11:20 +0000
committerroot <root>2009-07-09 09:11:20 +0000
commitce8dc1a03da38c405583d4673d8da12c2a26373e (patch)
tree3ef659f288940a17ba4950399baf18be3b67e1e9 /ev.c
parentdcdb154c9c5bd4ae64d5ebde7392ce11d7c774aa (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c13
1 files changed, 7 insertions, 6 deletions
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