summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2018-07-31 05:40:58 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2018-07-31 05:40:58 +0000
commitcf5975ab2425a5c4205ff3d6d6565f318169b4c6 (patch)
tree14b562179ca6b2c3ee25cd6f028ef182520c095a /ev.c
parent77bff4474e388edddffdeb5e8f65b748575533f1 (diff)
downloadlibev-cf5975ab2425a5c4205ff3d6d6565f318169b4c6.tar.gz
libev-cf5975ab2425a5c4205ff3d6d6565f318169b4c6.zip
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 693838b..5127150 100644
--- a/ev.c
+++ b/ev.c
@@ -3306,10 +3306,11 @@ ev_invoke_pending (EV_P)
{
pendingpri = NUMPRI;
- while (pendingpri) /* pendingpri possibly gets modified in the inner loop */
+ do
{
--pendingpri;
+ /* pendingpri possibly gets modified in the inner loop */
while (pendingcnt [pendingpri])
{
ANPENDING *p = pendings [pendingpri] + --pendingcnt [pendingpri];
@@ -3319,6 +3320,7 @@ ev_invoke_pending (EV_P)
EV_FREQUENT_CHECK;
}
}
+ while (pendingpri);
}
#if EV_IDLE_ENABLE