[7244] qemu: introduce lock/unlock_iothread (Marcelo Tosatti)
Revision: 7244
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7244 Author: aliguori Date: 2009-04-24 18:03:49 +0000 (Fri, 24 Apr 2009)
Log Message:
-----------
qemu: introduce lock/unlock_iothread (Marcelo Tosatti)
Hook to allow iothread to drop the global mutex.
Signed-off-by Marcelo Tosatti <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/vl.c
Modified: trunk/vl.c
===================================================================
vl.c +5 -0
@@ -3750,6 +3750,9 @@return ; } +#define qemu_mutex_lock_iothread () do { } while (0) +#define qemu_mutex_unlock_iothread () do { } while (0) +#ifdef _WIN32static void host_main_loop_wait (int *timeout) {
@@ -3842,7 +3845,9 @@ 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;