[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/7] unlock iothread during WaitForMultipleObjects
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH 1/7] unlock iothread during WaitForMultipleObjects |
Date: |
Thu, 10 Feb 2011 18:37:38 +0100 |
Signed-off-by: Paolo Bonzini <address@hidden>
Cc: Stefan Weil <address@hidden>
Cc: Blue Swirl <address@hidden>
---
os-win32.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/os-win32.c b/os-win32.c
index 566d5e9..d907c59 100644
--- a/os-win32.c
+++ b/os-win32.c
@@ -140,7 +140,9 @@ void os_host_main_loop_wait(int *timeout)
int err;
WaitObjects *w = &wait_objects;
+ qemu_mutex_unlock_iothread();
ret = WaitForMultipleObjects(w->num, w->events, FALSE, *timeout);
+ qemu_mutex_lock_iothread();
if (WAIT_OBJECT_0 + 0 <= ret && ret <= WAIT_OBJECT_0 + w->num - 1) {
if (w->func[ret - WAIT_OBJECT_0])
w->func[ret - WAIT_OBJECT_0](w->opaque[ret - WAIT_OBJECT_0]);
--
1.7.3.5
[Qemu-devel] [PATCH 7/7] remove CONFIG_THREAD, Paolo Bonzini, 2011/02/10
[Qemu-devel] [PATCH 1/7] unlock iothread during WaitForMultipleObjects,
Paolo Bonzini <=