qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [7244] qemu: introduce lock/unlock_iothread (Marcelo Tosatt


From: Anthony Liguori
Subject: [Qemu-devel] [7244] qemu: introduce lock/unlock_iothread (Marcelo Tosatti)
Date: Fri, 24 Apr 2009 18:03:50 +0000

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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

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;
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]