Received: from [140.186.70.92] (port=32877 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrtL7-0006hb-QV for qemu-devel@nongnu.org; Sat, 04 Sep 2010 10:03:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrtL6-00067C-Ho for qemu-devel@nongnu.org; Sat, 04 Sep 2010 10:03:29 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:50037) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrtL6-000674-Ae for qemu-devel@nongnu.org; Sat, 04 Sep 2010 10:03:28 -0400 Message-Id: <3BD70645-0CD6-48BC-90DE-EF1E43AD0DCF@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= In-Reply-To: <4C6B9A73.90903@redhat.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: [Qemu-devel] Re: Unmaintained QEMU builds Date: Sat, 4 Sep 2010 16:03:05 +0200 References: <4C62825A.6000903@mail.berlios.de> <4C685F5D.2090707@codemonkey.ws> <4C69A29F.5000606@codemonkey.ws> <4C6AE96C.2040907@codemonkey.ws> <4C6B9A73.90903@redhat.com> Sender: andreas.faerber@web.de List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Anthony Liguori Cc: Blue Swirl , QEMU Developers Am 18.08.2010 um 10:31 schrieb Paolo Bonzini: > On 08/17/2010 09:56 PM, Anthony Liguori wrote: >>> If Paolo's Win32 threads get merged, would there be other reasons >>> against continuing Win32 support? >> >> I think a better question would be, should we even bother with thread >> wrappers? If we drop win32 support, we can just assume pthreads and >> avoid a layer of indirection. > > Yes, we would. qemu_thread_create ensures the newly-created thread > won't receive any signals, for example. > > Some day the wrappers could even start using futexes directly if > there were a reason to do so. For BeOS there once was a pthreads library project. Maybe the same could work for Win32, implement the pthreads API and map to corresponding Win32 API functions? Then QEMU could use pthreads API and use wrappers only where strictly necessary. In theory this sounds less invasive. Andreas