qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] event notifier: Fix setup for win32


From: Jan Kiszka
Subject: [Qemu-devel] [PATCH] event notifier: Fix setup for win32
Date: Thu, 22 Nov 2012 20:56:11 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

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.

Signed-off-by: Jan Kiszka <address@hidden>
---

Grr, the last place I looked at after hours of debugging...

 event_notifier-win32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/event_notifier-win32.c b/event_notifier-win32.c
index c723dad..4ed21c2 100644
--- a/event_notifier-win32.c
+++ b/event_notifier-win32.c
@@ -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;
 }
-- 
1.7.3.4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]