qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 2/2] vnc: threaded VNC server


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH v2 2/2] vnc: threaded VNC server
Date: Sun, 06 Jun 2010 17:11:21 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Thunderbird/3.0.4

On 06/04/2010 04:20 PM, Corentin Chary wrote:

+    if (vnc_trylock_display(vd)) {
+        vd->timer_interval = VNC_REFRESH_INTERVAL_BASE;
+        qemu_mod_timer(vd->timer, qemu_get_clock(rt_clock) +
+                       vd->timer_interval);
+        return;
+    }
+
      has_dirty = vnc_refresh_server_surface(vd);
+    vnc_unlock_display(vd);

This could delay the update by quite a bit, no?

A more elaborate approach would be to enqueue the refresh job into the queue. May need the iothread enabled so we have qemu_mutex.

btw, I could not find other uses of vd->mutex, shouldn't it protect against the work thread?


--
error compiling committee.c: too many arguments to function




reply via email to

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