From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33758 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PncT5-0006Fr-6g for qemu-devel@nongnu.org; Thu, 10 Feb 2011 14:46:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PncT3-00037f-QU for qemu-devel@nongnu.org; Thu, 10 Feb 2011 14:46:18 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:55174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PncT3-00036f-D3 for qemu-devel@nongnu.org; Thu, 10 Feb 2011 14:46:17 -0500 Message-ID: <4D544085.2030206@mail.berlios.de> Date: Thu, 10 Feb 2011 20:46:13 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1297359464-9789-1-git-send-email-pbonzini@redhat.com> <1297359464-9789-5-git-send-email-pbonzini@redhat.com> In-Reply-To: <1297359464-9789-5-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 4/7] add win32 qemu-thread implementation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Blue Swirl , qemu-devel@nongnu.org Am 10.02.2011 18:37, schrieb Paolo Bonzini: > For now, qemu_cond_timedwait and qemu_mutex_timedlock are left as > POSIX-only functions. They can be removed later, once the patches > that remove their uses are in. > > Signed-off-by: Paolo Bonzini > Cc: Stefan Weil > Cc: Blue Swirl > --- > Makefile.objs | 4 +- > qemu-thread.c => qemu-thread-posix.c | 0 > qemu-thread-posix.h | 18 +++ > qemu-thread-win32.c | 272 ++++++++++++++++++++++++++++++++++ > qemu-thread-win32.h | 22 +++ > qemu-thread.h | 27 ++-- > 6 files changed, 326 insertions(+), 17 deletions(-) > rename qemu-thread.c => qemu-thread-posix.c (100%) > create mode 100644 qemu-thread-posix.h > create mode 100644 qemu-thread-win32.c > create mode 100644 qemu-thread-win32.h > What about using MinGW's pthread support? http://sourceforge.net/projects/mingw/files/MinGW/pthreads-w32/ I used it for the threaded vnc server in QEMU, but I don't have more practical experience with it. Regards, Stefan