summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorroot <root>2009-07-14 20:31:21 +0000
committerroot <root>2009-07-14 20:31:21 +0000
commit5fda87c6986d7a734b73b21afac13eb80242012b (patch)
treec51143c71e1d3642dc92dd4d255e3f577fbd288d /ev.c
parent7564459ef21327361ff12bb9e2c793cb755b45cb (diff)
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ev.c b/ev.c
index 82de10f..a6f414f 100644
--- a/ev.c
+++ b/ev.c
@@ -1842,6 +1842,18 @@ ev_invoke (EV_P_ void *w, int revents)
EV_CB_INVOKE ((W)w, revents);
}
+unsigned int
+ev_pending_count (EV_P)
+{
+ int pri;
+ unsigned int count = 0;
+
+ for (pri = NUMPRI; pri--; )
+ count += pendingcnt [pri];
+
+ return count;
+}
+
void noinline
ev_invoke_pending (EV_P)
{