diff options
author | root <root> | 2009-07-14 20:31:21 +0000 |
---|---|---|
committer | root <root> | 2009-07-14 20:31:21 +0000 |
commit | 5fda87c6986d7a734b73b21afac13eb80242012b (patch) | |
tree | c51143c71e1d3642dc92dd4d255e3f577fbd288d /ev.c | |
parent | 7564459ef21327361ff12bb9e2c793cb755b45cb (diff) |
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) { |