« Previous | Next » 

Revision 46daff13

ID46daff13c854769bfa8c51e77719325ea0f47b1b

Added by Paolo Bonzini almost 13 years ago

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 <>
Tested-by: Alexander Graf <>
Signed-off-by: Anthony Liguori <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences