summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2007-12-03 13:41:24 +0000
committerroot <root>2007-12-03 13:41:24 +0000
commiteb7909955a094de6e667e3e9f88ddbad46fc93b6 (patch)
treebac295fb43e74b3390fa853d4d4169bc9b520aec /ev.c
parentf6cc1f750a321b2c6e30637963d3e624c7a8e5ae (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 9f7e2be..8cb6141 100644
--- a/ev.c
+++ b/ev.c
@@ -888,6 +888,12 @@ ev_backend (EV_P)
return backend;
}
+unsigned int
+ev_loop_count (EV_P)
+{
+ return loop_count;
+}
+
static void noinline
loop_init (EV_P_ unsigned int flags)
{
@@ -1420,6 +1426,7 @@ ev_loop (EV_P_ int flags)
if (expect_false (block < 0.)) block = 0.;
}
+ ++loop_count;
backend_poll (EV_A_ block);
}