[vlc-devel] commit: Asynchronous timer API ( R??mi Denis-Courmont )

jpd at videolan.org jpd at videolan.org
Wed Jun 3 12:45:10 CEST 2009


On Tue, Jun 02, 2009 at 08:32:09PM +0200, git version control wrote:
> +struct vlc_timer_t
> +{
> +    timer_t handle;
> +    void (*func) (vlc_timer_t *, void *);
> +    void *data;
> +};

Why func(vlc_timer_t, data) instead of just func(vlc_timer_t) and
expecting func to say vlc_timer_t->data?

As a sidenote, some systems have hard limits on the number of timers one
can create (and the system might fail in Interesting Ways should that
limit be reached). I don't know what order of number of timers vlc would
like to use, but do we have fallbacks for the less time critical timer
users?





More information about the vlc-devel mailing list