[Spice-devel] [RFC v4 52/62] server/red_worker: red_worker_main: call red_handle_streams_timeout for all clients

Marc-André Lureau marcandre.lureau at gmail.com
Mon May 2 16:54:17 PDT 2011


Could be merged with 41/62: server/red_worker: start using SURFACES_FOREACH

On Tue, Apr 26, 2011 at 12:55 PM, Alon Levy <alevy at redhat.com> wrote:
> ---
>  server/red_worker.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/server/red_worker.c b/server/red_worker.c
> index 7e022f6..4402570 100644
> --- a/server/red_worker.c
> +++ b/server/red_worker.c
> @@ -10761,6 +10761,8 @@ static void red_display_cc_free_glz_drawables(RedChannelClient *rcc)
>  void *red_worker_main(void *arg)
>  {
>     RedWorker worker;
> +    Surfaces *surfaces;
> +    RingItem *link;
>
>     red_printf("begin");
>     ASSERT(MAX_PIPE_SIZE > WIDE_CLIENT_ACK_WINDOW &&
> @@ -10786,7 +10788,9 @@ void *red_worker_main(void *arg)
>
>         worker.epoll_timeout = MIN(red_get_streams_timout(&worker), worker.epoll_timeout);
>         num_events = epoll_wait(worker.epoll, events, MAX_EPOLL_SOURCES, worker.epoll_timeout);
> -        red_handle_streams_timout(&worker, &worker.surfaces);
> +        SURFACES_FOREACH(link, surfaces, &worker) {
> +            red_handle_streams_timout(&worker, surfaces);
> +        }
>
>         if (worker.display_channel) {
>             /* during migration, in the dest, the display channel can be initialized
> --
> 1.7.4.4
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
>



-- 
Marc-André Lureau


More information about the Spice-devel mailing list