Received: from [140.186.70.92] (port=36614 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8Hc2-0004Dc-EM for qemu-devel@nongnu.org; Tue, 19 Oct 2010 15:12:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8Hc1-0004e6-ES for qemu-devel@nongnu.org; Tue, 19 Oct 2010 15:12:42 -0400 Received: from e6.ny.us.ibm.com ([32.97.182.146]:33738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8Hc1-0004e2-BN for qemu-devel@nongnu.org; Tue, 19 Oct 2010 15:12:41 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e6.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o9JJD2G5023008 for ; Tue, 19 Oct 2010 15:13:02 -0400 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9JJCTGA453620 for ; Tue, 19 Oct 2010 15:12:29 -0400 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o9JJCSYI024654 for ; Tue, 19 Oct 2010 13:12:28 -0600 Date: Wed, 20 Oct 2010 00:42:25 +0530 From: Balbir Singh Subject: Re: [Qemu-devel] Re: [PATCH 1/3] Introduce threadlets Message-ID: <20101019191225.GJ15844@balbir.in.ibm.com> References: <20101019173946.16514.62027.stgit@localhost6.localdomain6> <20101019174245.16514.14542.stgit@localhost6.localdomain6> <20101019183644.GI15844@balbir.in.ibm.com> <4CBDEAEF.4080207@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <4CBDEAEF.4080207@redhat.com> Reply-To: balbir@linux.vnet.ibm.com List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Arun R Bharadwaj , qemu-devel@nongnu.org * Paolo Bonzini [2010-10-19 21:01:03]: > On 10/19/2010 08:36 PM, Balbir Singh wrote: > >Ideally you need > > > > s = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL); > > > >But qemu will need to wrap this around as well. > > Why? QEMU is never using thread cancellation. > Yes, I agree, in the longer run, cancellation is a good way to kill threads, specially in a thread pool. My comment was more along the lines of good practices and potential use of pthread_cancel(), not a strict comment on something urgent or broken. -- Three Cheers, Balbir