]> git.proxmox.com Git - qemu.git/commit
iothread: replace fair_mutex with a condition variable
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jun 2011 11:10:24 +0000 (13:10 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 23 Jul 2011 16:18:51 +0000 (11:18 -0500)
commit46daff13c854769bfa8c51e77719325ea0f47b1b
tree4a155409fd7cc8067d55af1220aa8afe07db4ac3
parent49e40b6627ea92c246b3903d171c88480b782512
iothread: replace fair_mutex with a condition variable

This conveys the intention better, and scales to more than >1
threads contending the mutex with the iothread (as long as all
of them have a "quiescent point" like the TCG thread has).

Also, on Mac OS X the fair_mutex somehow didn't work as intended
and deadlocked.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cpus.c