[pulseaudio-discuss] [PATCH]raop2: Blocking UDP sockets

Hajime Fujita crisp.fujita at nifty.com
Sat Sep 14 08:29:40 PDT 2013


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.
> 



More information about the pulseaudio-discuss mailing list