]> git.proxmox.com Git - qemu.git/commitdiff
trace: make trace_thread_create() use its function arg
authorJun Koi <junkoi2004@gmail.com>
Thu, 8 Mar 2012 06:20:37 +0000 (14:20 +0800)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 12 Mar 2012 10:12:34 +0000 (10:12 +0000)
This patch makes trace_thread_create() to use its function arg to
initialize thread.  The other choice is to make this a function to use
void arg, but i prefer this way.

Signed-off-by: Jun Koi <junkoi2004@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
trace/simple.c

index bbc99302b9427d12f109b428a9153713a4deca9f..33ae48696d194d7890152cf81ca3db619f3c494e 100644 (file)
@@ -363,7 +363,7 @@ static GThread *trace_thread_create(GThreadFunc fn)
     sigfillset(&set);
     pthread_sigmask(SIG_SETMASK, &set, &oldset);
 #endif
-    thread = g_thread_create(writeout_thread, NULL, FALSE, NULL);
+    thread = g_thread_create(fn, NULL, FALSE, NULL);
 #ifndef _WIN32
     pthread_sigmask(SIG_SETMASK, &oldset, NULL);
 #endif