Received: from eggs.gnu.org ([208.118.235.92]:50379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S74WY-0006Uv-Rs for qemu-devel@nongnu.org; Mon, 12 Mar 2012 08:39:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S74WC-0004BD-Ma for qemu-devel@nongnu.org; Mon, 12 Mar 2012 08:38:49 -0400 Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:59355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S74WC-0004AW-Dc for qemu-devel@nongnu.org; Mon, 12 Mar 2012 08:38:28 -0400 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 12 Mar 2012 12:38:24 -0000 Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [9.149.37.248]) by d06nrmr1407.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q2CCcBKv2339046 for ; Mon, 12 Mar 2012 12:38:11 GMT Received: from d06av07.portsmouth.uk.ibm.com (d06av07.portsmouth.uk.ibm.com [127.0.0.1]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q2CAb3uJ014885 for ; Mon, 12 Mar 2012 06:37:04 -0400 From: Stefan Hajnoczi Date: Mon, 12 Mar 2012 12:37:58 +0000 Message-Id: <1331555882-31828-4-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1331555882-31828-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1331555882-31828-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 3/7] trace: make trace_thread_create() use its function arg List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Anthony Liguori , Stefan Hajnoczi , Jun Koi From: Jun Koi 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 Signed-off-by: Stefan Hajnoczi --- 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