]> git.proxmox.com Git - qemu.git/commit
event_notifier: add event_notifier_set
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Jul 2012 15:16:22 +0000 (17:16 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 12 Jul 2012 11:05:46 +0000 (14:05 +0300)
commit2ec10b952b40d287037a50387a8b66d9ccc5124b
tree95e9a8a97c3d5e6f333666c7266c84f6d9e38268
parent5d62c43a17edaa7f6a88821c9086e6c8e0e5327d
event_notifier: add event_notifier_set

EventNotifier right now cannot be used as an inter-thread communication
primitive.  It only works if something else (the kernel) sets the eventfd.
Add a primitive to signal an EventNotifier that another thread is waiting
on.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
event_notifier.c
event_notifier.h