[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 upstream 01/21] unlock iothread during WaitForMul
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PATCH v4 upstream 01/21] unlock iothread during WaitForMultipleObjects |
Date: |
Sat, 12 Mar 2011 17:43:48 +0100 |
Signed-off-by: Paolo Bonzini <address@hidden>
---
os-win32.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/os-win32.c b/os-win32.c
index b214e6a..c971d92 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.4
- [Qemu-devel] [PATCH v4 upstream 00/21] Win32 iothread support, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 01/21] unlock iothread during WaitForMultipleObjects,
Paolo Bonzini <=
- [Qemu-devel] [PATCH v4 upstream 02/21] implement win32 dynticks timer, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 03/21] use win32 timer queues, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 04/21] Refactor thread retrieval and check, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 06/21] include qemu-thread.h early, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 05/21] add win32 qemu-thread implementation, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 07/21] add assertions on the owner of a QemuMutex, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 08/21] remove CONFIG_THREAD, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 10/21] always qemu_cpu_kick after unhalting a cpu, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 09/21] inline cpu_halted into sole caller, Paolo Bonzini, 2011/03/12
- [Qemu-devel] [PATCH v4 upstream 12/21] always signal pause_cond after stopping a VCPU, Paolo Bonzini, 2011/03/12