[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/7] trace: make trace_thread_create() use its funct
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 3/7] trace: make trace_thread_create() use its function arg |
Date: |
Mon, 12 Mar 2012 12:37:58 +0000 |
From: Jun Koi <address@hidden>
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 <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
trace/simple.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/trace/simple.c b/trace/simple.c
index bbc9930..33ae486 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
--
1.7.9.1
- [Qemu-devel] [PULL 0/7] Tracing patches, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 7/7] vga: add trace event for ppm_save, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 3/7] trace: make trace_thread_create() use its function arg,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 2/7] tracetool: Omit useless QEMU_*_ENABLED() check, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 6/7] console: add some trace events, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 4/7] docs: correct ./configure line in tracing.txt, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 5/7] maintainers: Add docs/tracing.txt to Tracing, Stefan Hajnoczi, 2012/03/12
- [Qemu-devel] [PATCH 1/7] trace: Provide a per-event status define for conditional compilation, Stefan Hajnoczi, 2012/03/12
- Re: [Qemu-devel] [PULL 0/7] Tracing patches, Anthony Liguori, 2012/03/12