]> Git Repo - qemu.git/commitdiff
event notifier: Fix setup for win32
authorJan Kiszka <[email protected]>
Thu, 22 Nov 2012 19:56:11 +0000 (20:56 +0100)
committerAnthony Liguori <[email protected]>
Wed, 28 Nov 2012 19:33:01 +0000 (13:33 -0600)
The event notifier state is only reset by test_and_clear. But we created
the windows event object with auto-reset, which subtly swallowed events.

Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
event_notifier-win32.c

index c723dadf3134229cc9f7cba5531363a1a6bbd84e..4ed21c2a7c8729876748d4c9198a8b1eafbd41ae 100644 (file)
@@ -16,7 +16,7 @@
 
 int event_notifier_init(EventNotifier *e, int active)
 {
-    e->event = CreateEvent(NULL, FALSE, FALSE, NULL);
+    e->event = CreateEvent(NULL, TRUE, FALSE, NULL);
     assert(e->event);
     return 0;
 }
This page took 0.024767 seconds and 4 git commands to generate.