Michael Roth ee77dfb26a main-loop: Fix SetEvent() on uninitialized handle on win32
The __attribute__((constructor)) init_main_loop() automatically get
called if qemu-tool.o is linked in. On win32, this leads to
a qemu_notify_event() call which attempts to SetEvent() on a HANDLE that
won't be initialized until qemu_init_main_loop() is manually called,
breaking qemu-tools.o programs on Windows at runtime.

This patch checks for an initialized event handle before attempting to
set it, which is analoguous to how we deal with an unitialized
io_thread_fd in the posix implementation.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2012-02-01 14:45:02 -06:00
2012-01-26 14:49:18 +01:00
2012-01-13 10:55:56 -06:00
2012-01-26 14:49:18 +01:00
2012-01-27 10:50:55 -06:00
2012-01-21 05:17:02 +01:00
2012-01-25 15:10:17 +00:00
2012-01-21 05:17:00 +01:00
2012-01-13 10:36:59 +00:00
2012-01-19 08:14:33 +00:00
2012-01-21 05:17:01 +01:00
2011-11-07 10:57:36 -06:00
2012-01-13 10:55:56 -06:00
2011-12-02 10:50:57 +00:00
2011-12-06 11:40:01 -02:00
2011-12-06 11:40:01 -02:00
2012-01-26 14:49:18 +01:00
2012-01-26 14:49:18 +01:00
2012-01-18 10:23:39 -02:00
2012-01-13 10:37:00 +00:00
2012-01-12 10:05:37 -06:00
2012-01-12 10:05:37 -06:00
2012-01-12 10:05:37 -06:00
2012-01-12 10:05:38 -06:00
2011-11-07 08:01:15 +00:00
2012-01-18 10:23:38 -02:00
2012-01-04 13:34:50 +02:00
2012-01-04 13:34:50 +02:00
2011-12-15 09:20:50 -06:00
2011-11-01 10:58:08 -05:00
2012-01-10 09:36:43 +01:00
2011-10-31 21:52:17 +01:00
2011-10-31 21:52:17 +01:00
2011-12-02 10:50:57 +00:00
2012-01-26 14:49:18 +01:00
2012-01-26 14:49:18 +01:00
2011-12-02 10:50:57 +00:00
2012-01-13 10:55:56 -06:00
2011-12-09 11:25:22 +00:00
2011-12-02 10:50:57 +00:00
2012-02-01 14:42:03 -06:00
2012-01-13 10:55:56 -06:00
2012-01-26 14:49:18 +01:00
2012-01-26 14:49:18 +01:00
2011-12-22 11:53:59 +01:00
2011-12-22 11:53:59 +01:00
2012-01-12 10:34:20 -06:00
2012-01-13 10:55:56 -06:00
2011-12-22 11:53:58 +01:00
2012-01-13 10:55:56 -06:00
2012-01-10 18:23:58 +01:00
2012-01-10 18:23:58 +01:00
2012-01-26 14:49:18 +01:00
2011-12-15 09:20:50 -06:00
2011-12-15 09:20:50 -06:00
2012-01-27 05:29:56 +00:00
2011-12-06 10:07:04 +00:00
2012-01-26 14:49:18 +01:00
2012-01-26 14:49:18 +01:00
2012-01-26 14:49:18 +01:00
2012-01-18 10:23:39 -02:00
2011-12-11 17:50:43 -06:00
2012-01-04 13:34:50 +02:00
2011-10-31 21:52:17 +01:00
2012-01-30 19:13:21 +00:00
2012-01-27 10:50:47 -06:00
2012-01-27 10:50:47 -06:00
2012-01-27 10:50:47 -06:00
2012-02-01 14:45:01 -06:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%