Revision 9931b2f4
b/os-win32.c | ||
---|---|---|
140 | 140 |
int err; |
141 | 141 |
WaitObjects *w = &wait_objects; |
142 | 142 |
|
143 |
qemu_mutex_unlock_iothread(); |
|
143 | 144 |
ret = WaitForMultipleObjects(w->num, w->events, FALSE, *timeout); |
145 |
qemu_mutex_lock_iothread(); |
|
144 | 146 |
if (WAIT_OBJECT_0 + 0 <= ret && ret <= WAIT_OBJECT_0 + w->num - 1) { |
145 | 147 |
if (w->func[ret - WAIT_OBJECT_0]) |
146 | 148 |
w->func[ret - WAIT_OBJECT_0](w->opaque[ret - WAIT_OBJECT_0]); |
Also available in: Unified diff