[Babel-users] Main Loop Frequency
Juliusz Chroboczek
jch at irif.fr
Tue Mar 7 15:13:15 UTC 2017
> The cleanest way I see would be to use timerfd, as Toke suggested, and
> integrate that in the list of file descriptors watched by select(). As a
> perhaps simpler alternative, you could also integrate your recurrent task
> in "tv" (i.e. set "tv" to be the minimum of "tv" and the time at which you
> want your task to be run next).
Integrating the deadline in tv is the simpler solution IMHO. Or spawn
a POSIX thread for your periodic task.
-- Juliusz
More information about the Babel-users
mailing list