Attention is currently required from: jolly.
fixeria 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:
(2 comments)
Commit Message:
https://gerrit.osmocom.org/c/libosmocore/+/35672/comment/3521b26d_5e5f8689 PS1, Line 11: Note that poll() has a granularity of 1 millisecond. ... while `select()` has a granularity of microseconds, according to the man page.
File src/core/timer.c:
https://gerrit.osmocom.org/c/libosmocore/+/35672/comment/c4d06513_d5da1e09 PS1, Line 199: nearest_ms += (nearest_p->tv_usec + 999) / 1000; Just curious: in which project did you find timers less than 1 ms?
BTW, this change has a side effect:
* 0.2 ms becomes 1 ms -- fine, as expected; * 1.2 ms becomes 2 ms -- probably not so nice.