[PATCH]raop2: Blocking UDP sockets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux