[Spice-devel] [PATCH v2 2/6] server: introduce dispatcher

Paolo Bonzini pbonzini at redhat.com
Mon Nov 7 04:20:56 PST 2011


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


More information about the Spice-devel mailing list