Re: [Qemu-devel] [PATCH] qemu-lock.h: Remove non-pthreads spinlock implementations

2011-02-20 Thread Aurelien Jarno
On Mon, Jan 31, 2011 at 06:26:40PM +, Peter Maydell wrote: > Since configure guarantees us that we have pthreads on all hosts > except mingw (which doesn't support a USER_ONLY config), we can > and should use the pthread_mutex based implementation of spin_lock() > and spin_unlock() in all USER_

Re: [Qemu-devel] [PATCH] qemu-lock.h: Remove non-pthreads spinlock implementations

2011-02-11 Thread Peter Maydell
On 31 January 2011 18:26, Peter Maydell wrote: > Since configure guarantees us that we have pthreads on all hosts > except mingw (which doesn't support a USER_ONLY config), we can > and should use the pthread_mutex based implementation of spin_lock() > and spin_unlock() in all USER_ONLY cases. Thi

[Qemu-devel] [PATCH] qemu-lock.h: Remove non-pthreads spinlock implementations

2011-01-31 Thread Peter Maydell
Since configure guarantees us that we have pthreads on all hosts except mingw (which doesn't support a USER_ONLY config), we can and should use the pthread_mutex based implementation of spin_lock() and spin_unlock() in all USER_ONLY cases. This means that all the inline-native-assembly code support