[Spice-devel] [RFC v4 52/62] server/red_worker: red_worker_main: call red_handle_streams_timeout for all clients
Alon Levy
alevy at redhat.com
Tue Apr 26 03:55:17 PDT 2011
---
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
More information about the Spice-devel
mailing list