mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-10 03:47:35 +00:00
red-worker: Optimise check
Use compile time check instead of runtime one. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
aebc51f91a
commit
48e732e08b
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user