From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43839 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OK9Zz-0000HX-Ek for qemu-devel@nongnu.org; Thu, 03 Jun 2010 08:31:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OK9Zx-0008OY-PG for qemu-devel@nongnu.org; Thu, 03 Jun 2010 08:31:23 -0400 Received: from mail-ww0-f45.google.com ([74.125.82.45]:47499) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OK9Zx-0008OM-Jj for qemu-devel@nongnu.org; Thu, 03 Jun 2010 08:31:21 -0400 Received: by wwb13 with SMTP id 13so31284wwb.4 for ; Thu, 03 Jun 2010 05:31:20 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <4C07A093.8020907@redhat.com> Date: Thu, 03 Jun 2010 14:31:15 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20100603085223.25546.88499.stgit@localhost.localdomain> <20100603085618.25546.99966.stgit@localhost.localdomain> In-Reply-To: <20100603085618.25546.99966.stgit@localhost.localdomain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH V3 1/3] qemu: Add qemu-wrappers for pthread_attr_t List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gautham R Shenoy Cc: Anthony Liguori , Qemu-development List , Corentin Chary , Avi Kivity On 06/03/2010 10:56 AM, Gautham R Shenoy wrote: > Add qemu wrappers for pthread_attr_t handling. The point of these wrappers AFAIU is not only to add error_exit, but also to be portable to Windows in the future. Is it necessary to create the threads as detached? If you set queue->min_threads to zero all threads should exit as soon as they finish their work (which is better than exiting immediately). Paolo