[Spice-commits] server/red-worker.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Fri Dec 16 08:14:52 UTC 2016


 server/red-worker.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 48e732e08b6a7e25bcdd3762955d62da6ddaa586
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Sat Dec 10 15:23:43 2016 +0000

    red-worker: Optimise check
    
    Use compile time check instead of runtime one.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

diff --git a/server/red-worker.c b/server/red-worker.c
index d6a5e77..9fd565f 100644
--- a/server/red-worker.c
+++ b/server/red-worker.c
@@ -1398,7 +1398,7 @@ static void *red_worker_main(void *arg)
     RedWorker *worker = arg;
 
     spice_info("begin");
-    spice_assert(MAX_PIPE_SIZE > WIDE_CLIENT_ACK_WINDOW &&
+    SPICE_VERIFY(MAX_PIPE_SIZE > WIDE_CLIENT_ACK_WINDOW &&
            MAX_PIPE_SIZE > NARROW_CLIENT_ACK_WINDOW); //ensure wakeup by ack message
 
     red_channel_reset_thread_id(RED_CHANNEL(worker->cursor_channel));


More information about the Spice-commits mailing list