aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Koi <junkoi2004@gmail.com>2012-03-08 14:20:37 +0800
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-03-12 10:12:34 +0000
commitdb3bf8696358e105903b00432cad0aa50d3c0cb6 (patch)
tree07f755ed0e925ef3437fb4b764e6632a88e390ac
parentbcec43324d02d586a8bc0c9093623636e870ad19 (diff)
trace: make trace_thread_create() use its function arg
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>
-rw-r--r--trace/simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace/simple.c b/trace/simple.c
index bbc99302b9..33ae48696d 100644
--- a/trace/simple.c
+++ b/trace/simple.c
@@ -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