From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Id2XH-0007tw-TG for qemu-devel@nongnu.org; Wed, 03 Oct 2007 07:37:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Id2XF-0007ot-JS for qemu-devel@nongnu.org; Wed, 03 Oct 2007 07:37:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id2XF-0007of-FY for qemu-devel@nongnu.org; Wed, 03 Oct 2007 07:37:01 -0400 Received: from nf-out-0910.google.com ([64.233.182.186]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Id2XF-0004Nc-2e for qemu-devel@nongnu.org; Wed, 03 Oct 2007 07:37:01 -0400 Received: by nf-out-0910.google.com with SMTP id 30so3306065nfu for ; Wed, 03 Oct 2007 04:36:57 -0700 (PDT) Message-ID: Date: Wed, 3 Oct 2007 13:36:56 +0200 From: "andrzej zaborowski" Subject: Re: [Qemu-devel] using pthread in qemu In-Reply-To: <200710031304.33153.clemens.kol@gmx.at> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071002175756.24785gmx1@mx005.gmx.net> <200710031304.33153.clemens.kol@gmx.at> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi, On 03/10/2007, Clemens Kolbitsch wrote: > hi! > i know... i have been told not to use them, but i just HAVE TO for the > moment :-( > > i need to run a second thread inside my hardware module which is not a problem > as long as i don't use the qcow2 image format. when i switch to qcow2, qemu's > main thread hangs because the second thread is waiting for a semaphore... > > does anyone know how to tell the second pthread not to block the primary > thread?? Maybe this thread can be helpful: http://lists.gnu.org/archive/html/qemu-devel/2007-04/msg00090.html Regards, Andrew