« Previous | Next » 

Revision 19d092cf

ID19d092cf9ba3c01b0e22ef65c499ae7ddc28d0e8

Added by Paolo Bonzini almost 9 years ago

threadpool: do not take lock in event_notifier_ready

The ordering is:

worker thread                         consumer thread
-------------------------------------------------------------------
write ret event_notifier_test_and_clear
wmb() read state
write state rmb()
event_notifier_set read ret

Signed-off-by: Paolo Bonzini <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences