aboutsummaryrefslogtreecommitdiff
path: root/event_notifier.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-07-05 17:16:22 +0200
committerAvi Kivity <avi@redhat.com>2012-07-12 14:05:46 +0300
commit2ec10b952b40d287037a50387a8b66d9ccc5124b (patch)
tree95e9a8a97c3d5e6f333666c7266c84f6d9e38268 /event_notifier.h
parent5d62c43a17edaa7f6a88821c9086e6c8e0e5327d (diff)
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>
Diffstat (limited to 'event_notifier.h')
-rw-r--r--event_notifier.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/event_notifier.h b/event_notifier.h
index 886222cb36..efca852d10 100644
--- a/event_notifier.h
+++ b/event_notifier.h
@@ -22,6 +22,7 @@ struct EventNotifier {
int event_notifier_init(EventNotifier *, int active);
void event_notifier_cleanup(EventNotifier *);
int event_notifier_get_fd(EventNotifier *);
+int event_notifier_set(EventNotifier *);
int event_notifier_test_and_clear(EventNotifier *);
int event_notifier_test(EventNotifier *);