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

Paolo Bonzini pbonzini at redhat.com
Mon Nov 7 03:52:25 PST 2011


On 11/07/2011 12:44 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.

I'm not sure what you want to do here, since this is the sole caller of 
dispatcher_handle_single_read.

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

Paolo


More information about the Spice-devel mailing list