From: aliguori Date: Fri, 24 Apr 2009 18:03:49 +0000 (+0000) Subject: qemu: introduce lock/unlock_iothread (Marcelo Tosatti) X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~12117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4870852c9e5c92d1e94afddbee607e578e226fae;p=sdk%2Femulator%2Fqemu.git qemu: introduce lock/unlock_iothread (Marcelo Tosatti) Hook to allow iothread to drop the global mutex. Signed-off-by: Marcelo Tosatti Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7244 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/vl.c b/vl.c index 92f3014..63aeb23 100644 --- a/vl.c +++ b/vl.c @@ -3750,6 +3750,9 @@ void qemu_cpu_kick(void *env) return; } +#define qemu_mutex_lock_iothread() do { } while (0) +#define qemu_mutex_unlock_iothread() do { } while (0) + #ifdef _WIN32 static void host_main_loop_wait(int *timeout) { @@ -3842,7 +3845,9 @@ void main_loop_wait(int timeout) slirp_select_fill(&nfds, &rfds, &wfds, &xfds); } #endif + qemu_mutex_unlock_iothread(); ret = select(nfds + 1, &rfds, &wfds, &xfds, &tv); + qemu_mutex_lock_iothread(); if (ret > 0) { IOHandlerRecord **pioh;