Hi Rémi,

>> 1) it would consume 100% of the CPU time
> No, it won't. poll() will *not* return immediately.

Oh you're right. For some reason I misunderstood that poll(..., -1)
meant "no wait, return immediately" but actually it was "no timeout,
wait forever".


Thanks,
Hajime

Rémi Denis-Courmont wrote:
> Le vendredi 13 septembre 2013 23:02:15 Hajime Fujita a écrit :
>> However, I don't it's a good idea to do a busy loop here, because
>> 1) it would consume 100% of the CPU time
> 
> No, it won't. poll() will *not* return immediately.
> 
>> 2) it would block the message loop (I'm not sure about the real
>> implication of this, though)
> 
> But yes.
> 

_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to