mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
main: tag fdm loop with likely() and unlikely()
This commit is contained in:
parent
15b35b7641
commit
addc374655
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
|
@ -490,8 +490,8 @@ main(int argc, char *const *argv)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (!aborted && (as_server || tll_length(wayl->terms) > 0)) {
|
while (likely(!aborted && (as_server || tll_length(wayl->terms) > 0))) {
|
||||||
if (!fdm_poll(fdm))
|
if (unlikely(!fdm_poll(fdm)))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue