Received: from eggs.gnu.org ([2001:4830:134:3::10]:57128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQyUL-0001a8-Or for qemu-devel@nongnu.org; Thu, 26 Feb 2015 08:28:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQyUC-0007dt-5b for qemu-devel@nongnu.org; Thu, 26 Feb 2015 08:28:25 -0500 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:41637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQyUB-0007ci-Ss for qemu-devel@nongnu.org; Thu, 26 Feb 2015 08:28:16 -0500 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Feb 2015 13:28:14 -0000 From: Thomas Huth Date: Thu, 26 Feb 2015 14:28:07 +0100 Message-Id: <1424957288-24408-3-git-send-email-thuth@linux.vnet.ibm.com> In-Reply-To: <1424957288-24408-1-git-send-email-thuth@linux.vnet.ibm.com> References: <1424957288-24408-1-git-send-email-thuth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 2/3] ui/vnc: Remove vnc_stop_worker_thread() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org Cc: qemu-devel@nongnu.org, Thomas Huth This function is not used anymore, let's remove it. Signed-off-by: Thomas Huth Reviewed-by: Gerd Hoffmann --- ui/vnc-jobs.c | 13 ------------- ui/vnc-jobs.h | 1 - 2 files changed, 0 insertions(+), 14 deletions(-) diff --git a/ui/vnc-jobs.c b/ui/vnc-jobs.c index 68f3d77..c8ee203 100644 --- a/ui/vnc-jobs.c +++ b/ui/vnc-jobs.c @@ -342,16 +342,3 @@ void vnc_start_worker_thread(void) QEMU_THREAD_DETACHED); queue = q; /* Set global queue */ } - -void vnc_stop_worker_thread(void) -{ - if (!vnc_worker_thread_running()) - return ; - - /* Remove all jobs and wake up the thread */ - vnc_lock_queue(queue); - queue->exit = true; - vnc_unlock_queue(queue); - vnc_jobs_clear(NULL); - qemu_cond_broadcast(&queue->cond); -} diff --git a/ui/vnc-jobs.h b/ui/vnc-jobs.h index 31da103..044bf9f 100644 --- a/ui/vnc-jobs.h +++ b/ui/vnc-jobs.h @@ -40,7 +40,6 @@ void vnc_jobs_join(VncState *vs); void vnc_jobs_consume_buffer(VncState *vs); void vnc_start_worker_thread(void); -void vnc_stop_worker_thread(void); /* Locks */ static inline int vnc_trylock_display(VncDisplay *vd) -- 1.7.1