From 7986350cb8fd03467cbae6be3f6a7fa24f75c6e9 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 14 Dec 2017 02:24:18 +1100 Subject: [PATCH] [client] switch to polling mode to fix stutting issues --- client/main.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/main.c b/client/main.c index 8136081d..ec43b6aa 100644 --- a/client/main.c +++ b/client/main.c @@ -166,11 +166,7 @@ int renderThread(void * unused) // we must take a copy of the header, both to let the guest advance and to // prevent the contained arguments being abused to overflow buffers memcpy(&header, state.shm, sizeof(struct KVMFRHeader)); - if (!ivshmem_kick_irq(header.guestID, 0)) - { - usleep(1000); - continue; - } + __sync_or_and_fetch(&state.shm->flags, KVMFR_HEADER_FLAG_READY); // check the header's magic and version are valid if (