Attention is currently required from: fixeria, pespin.
jolly has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/35672?usp=email )
Change subject: Prevent poll() in select.c to timeout too early ......................................................................
Patch Set 1:
(1 comment)
File src/core/timer.c:
https://gerrit.osmocom.org/c/libosmocore/+/35672/comment/90d9b82a_6bdb986e PS1, Line 199: nearest_ms += (nearest_p->tv_usec + 999) / 1000;
Ack, maybe it makes sense to round 0->1 to avoid busy polls, and let the others X.Y ->X.0. […]
If we round down values above 1 ms, we still have the problem that timers that have a remaining time of more than 1 ms will cause poll() to exit too early. The result is that the main loop will call the poll() again, but this time with less than 1 ms, rounded up to 1 ms.