… | |
… | |
994 | return 1; |
994 | return 1; |
995 | |
995 | |
996 | return 0; |
996 | return 0; |
997 | } |
997 | } |
998 | |
998 | |
999 | static void |
999 | inline void |
1000 | call_pending (EV_P) |
1000 | call_pending (EV_P) |
1001 | { |
1001 | { |
1002 | int pri; |
1002 | int pri; |
1003 | |
1003 | |
1004 | for (pri = NUMPRI; pri--; ) |
1004 | for (pri = NUMPRI; pri--; ) |
1005 | while (pendingcnt [pri]) |
1005 | while (pendingcnt [pri]) |
1006 | { |
1006 | { |
1007 | ANPENDING *p = pendings [pri] + --pendingcnt [pri]; |
1007 | ANPENDING *p = pendings [pri] + --pendingcnt [pri]; |
1008 | |
1008 | |
1009 | if (p->w) |
1009 | if (expect_true (p->w)) |
1010 | { |
1010 | { |
1011 | p->w->pending = 0; |
1011 | p->w->pending = 0; |
1012 | EV_CB_INVOKE (p->w, p->events); |
1012 | EV_CB_INVOKE (p->w, p->events); |
1013 | } |
1013 | } |
1014 | } |
1014 | } |