add assertions on the owner of a QemuMutex
commit89b48b56812a1a2d5b7edc927a7853d952e7fb38
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 12 Mar 2011 16:43:54 +0000 (12 17:43 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 13 Mar 2011 14:44:21 +0000 (13 14:44 +0000)
tree99c0949e319a2e0a3e76179b76eaf8a1f966c700
parent96284e8973fe8d8556ef5d4aefa0807b9f22907c
add assertions on the owner of a QemuMutex

These are already present in the Win32 implementation, add them to
the pthread wrappers as well.  Use PTHREAD_MUTEX_ERRORCHECK for mutex
operations. Later we'll add tracking of the owner for cond_signal/broadcast.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
qemu-thread-posix.c