[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PATCH 3/5] ui/vnc: Remove vnc_stop_worker_thread()
From: |
Thomas Huth |
Subject: |
[Qemu-trivial] [PATCH 3/5] ui/vnc: Remove vnc_stop_worker_thread() |
Date: |
Thu, 19 Feb 2015 18:12:21 +0100 |
This function is not used anymore, let's remove it.
Signed-off-by: Thomas Huth <address@hidden>
Cc: Anthony Liguori <address@hidden>
Cc: Gerd Hoffmann <address@hidden>
---
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
- [Qemu-trivial] [PATCH v2 0/5] Remove unused functions, Thomas Huth, 2015/02/19
- [Qemu-trivial] [PATCH 4/5] util: Remove unused functions, Thomas Huth, 2015/02/19
- [Qemu-trivial] [PATCH 2/5] ui: Removed unused functions, Thomas Huth, 2015/02/19
- [Qemu-trivial] [PATCH 5/5] xen: Remove xen_cmos_set_s3_resume(), Thomas Huth, 2015/02/19
- [Qemu-trivial] [PATCH 3/5] ui/vnc: Remove vnc_stop_worker_thread(),
Thomas Huth <=
- [Qemu-trivial] [PATCH 1/5] migration: Remove unused functions, Thomas Huth, 2015/02/19
- Re: [Qemu-trivial] [PATCH v2 0/5] Remove unused functions, Michael Tokarev, 2015/02/28