[avahi] `avahi_simple_poll_iterate ()' with TIMEOUT > 0
Ludovic Courtès
ludovic.courtes at laas.fr
Fri Mar 10 00:47:23 PST 2006
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:
if (timeout > 0)
return 0;
;-)
Thanks,
Ludovic.
More information about the avahi
mailing list