summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
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)
{