[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] event notifier: Fix setup for win32
From: |
Anthony Liguori |
Subject: |
Re: [Qemu-devel] [PATCH] event notifier: Fix setup for win32 |
Date: |
Wed, 28 Nov 2012 15:37:38 -0600 |
User-agent: |
Notmuch/0.13.2+93~ged93d79 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) |
Jan Kiszka <address@hidden> writes:
> 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>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
>
> 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