From b7680cb6078bd7294a3dd86473d3f2fdee991dd0 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sat, 12 Mar 2011 17:43:51 +0100 Subject: Refactor thread retrieval and check We have qemu_cpu_self and qemu_thread_self. The latter is retrieving the current thread, the former is checking for equality (using CPUState). We also have qemu_thread_equal which is only used like qemu_cpu_self. This refactors the interfaces, creating qemu_cpu_is_self and qemu_thread_is_self as well ass qemu_thread_get_self. Signed-off-by: Jan Kiszka Signed-off-by: Paolo Bonzini Signed-off-by: Blue Swirl --- ui/vnc-jobs-async.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/vnc-jobs-async.c b/ui/vnc-jobs-async.c index f596247004..1dfa6c3c9e 100644 --- a/ui/vnc-jobs-async.c +++ b/ui/vnc-jobs-async.c @@ -303,7 +303,7 @@ static void *vnc_worker_thread(void *arg) { VncJobQueue *queue = arg; - qemu_thread_self(&queue->thread); + qemu_thread_get_self(&queue->thread); while (!vnc_worker_thread_loop(queue)) ; vnc_queue_clear(queue); -- cgit v1.2.3