qemu-lock.h: Remove non-pthreads spinlock implementations
commit02615337ef295443daa03233e492194e289a807e
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 31 Jan 2011 18:26:40 +0000 (31 18:26 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 20 Feb 2011 14:20:06 +0000 (20 15:20 +0100)
treed5371767bd220b03d2cd3d6f7aba5bfb0c366850
parent322fd48afbed1ef7b834ac343a0c8687bcb33695
qemu-lock.h: Remove non-pthreads spinlock implementations

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 supporting the "USER_ONLY but not USE_NPTL"
case can go away.

The not-USER_ONLY case remains as empty implementations; there is
no change in behaviour here.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
qemu-lock.h