qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [7244] qemu: introduce lock/unlock_iothread (Marcelo Tosatti)
@ 2009-04-24 18:03 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-04-24 18:03 UTC (permalink / raw)
  To: qemu-devel

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 <mtosatti@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/vl.c

Modified: trunk/vl.c
===================================================================
--- trunk/vl.c	2009-04-24 18:03:45 UTC (rev 7243)
+++ trunk/vl.c	2009-04-24 18:03:49 UTC (rev 7244)
@@ -3750,6 +3750,9 @@
     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 @@
         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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-04-24 18:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-24 18:03 [Qemu-devel] [7244] qemu: introduce lock/unlock_iothread (Marcelo Tosatti) Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).