[avahi] `avahi_simple_poll_iterate ()' with TIMEOUT > 0
Sebastien Estienne
sebastien.estienne at gmail.com
Fri Mar 10 03:27:03 PST 2006
On 3/10/06, Ludovic Courtès <ludovic.courtes at laas.fr> wrote:
> Hi,
>
> "Sebastien Estienne" <sebastien.estienne at gmail.com> writes:
>
> > from the api docs: "If sleep_time > 0 the function will block for at
> > most the specified time in msecs."
> > so the attached callback have at most TIMEOUT msec to execute, it will
> > not always block till timeout.
>
> Sure, but it actually never does anything, even with TIMEOUT == INT_MAX.
> Additionally, given the relative complexity of the code, I think the
> intent was not to just mimic:
have you had a look at avahi-core/timeeventq-test.c ?
most of the time we use it with "-1"
>
> if (timeout > 0)
> return 0;
>
> ;-)
>
> Thanks,
> Ludovic.
> _______________________________________________
> avahi mailing list
> avahi at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/avahi
>
--
Sebastien Estienne
More information about the avahi
mailing list