Attention is currently required from: Hoernchen, fixeria, laforge, 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)
Patchset:
PS1:
rounding up should be fine, but tbh, I can't quite see the actual real world issue here - it would r […]
I have no idea how the scheduler works, but if a process is not running (during poll()), I guess the CPU thread will be directly switched to another process that is running (due to an event). I have an application that uses timer to schedule RTP stream at a rate of 50 frames per second. This is 20 ms delay between frames. Without this patch, the CPU usage at "top" command shows around 5% CPU usage, with a patch (round up or change from 0 to 1) it shows below 1% CPU usage.