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