Using ev_periodic with a custom loop and a specific start time
lu_zero at gentoo.org
Tue Apr 7 17:52:43 CEST 2009
Luca Barbato wrote:
> I'm trying to replace a rtp sender loop with libev using ev_periodic.
> It should start at a given time and since then it should output a packet
> depending on the time previous packet takes to be played (this is an
> rtsp/rtp server).
After digging a bit seems apparent that ev_periodic suffer starvation
since the latest event reschedule is always the first trigged (making
the others starve). I'm using it wrongly, is ev_periodic supposed to
behave this way or is there a bug?
Gentoo Council Member
More information about the libev