On 11/07/2011 01:05 PM, Alon Levy wrote:
>  >+void dispatcher_handle_recv_read(Dispatcher *dispatcher)
>  >+{
>  >+    while (dispatcher_handle_single_read(dispatcher)) {
>  >+    }
>  >+}
>
>  This will busy-wait if no messages are ready.

dispatcher_handle_single_read returns 0 when it fails to read a
message type, in the initial read_safe, which breaks the loop.

Understood now.

>  The POSIX bits look fine though, and that's the only part I really
>  looked at.

Right, out of laziness I cc-ed the whole bit to you and not just it.

I meant in this patch too. :)

Paolo
_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to