From patchwork Mon Mar 12 12:37:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 146093 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3E1DDB6FA8 for ; Mon, 12 Mar 2012 23:39:21 +1100 (EST) Received: from localhost ([::1]:57339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S74Wp-0006yz-Lo for incoming@patchwork.ozlabs.org; Mon, 12 Mar 2012 08:39:07 -0400 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 d06nrmr1407.portsmouth.uk.ibm.com (9.149.38.185) by e06smtp18.uk.ibm.com (192.168.101.148) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 12 Mar 2012 12:38:12 -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 Received: from localhost (stefanha-thinkpad.manchester-maybrook.uk.ibm.com [9.174.219.44]) by d06av07.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q2CAb316014878; Mon, 12 Mar 2012 06:37:03 -0400 From: Stefan Hajnoczi To: Date: Mon, 12 Mar 2012 12:37:58 +0000 Message-Id: <1331555882-31828-4-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.9.1 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> x-cbid: 12031212-6892-0000-0000-00000144B5E8 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.75.94.114 Cc: Blue Swirl , Anthony Liguori , Stefan Hajnoczi , Jun Koi Subject: [Qemu-devel] [PATCH 3/7] trace: make trace_thread_create() use its function arg X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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