diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-04-27 16:06:10 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-03 15:35:48 +0200 |
commit | 196a778428989217b82de042725dc8eb29c8f8d8 (patch) | |
tree | f0c42f6445f0c4e51105b7195e7c51a2d4b43d06 /ui/spice-display.c | |
parent | 075360945860ad9bdd491921954b383bf762b0e5 (diff) | |
download | qemu-196a778428989217b82de042725dc8eb29c8f8d8.zip qemu-196a778428989217b82de042725dc8eb29c8f8d8.tar.gz qemu-196a778428989217b82de042725dc8eb29c8f8d8.tar.bz2 |
spice: drop obsolete iothread locking
We don't use qemu internals from spice server context any more.
Thus we don't also need to grab the iothread mutex from spice
server context. And we don't have to temporarely release the
lock to avoid deadlocks. Drop all the calls.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/spice-display.c')
-rw-r--r-- | ui/spice-display.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ui/spice-display.c b/ui/spice-display.c index 8579bfd..15f0704 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -176,18 +176,14 @@ void qemu_spice_create_host_primary(SimpleSpiceDisplay *ssd) surface.mem = (intptr_t)ssd->buf; surface.group_id = MEMSLOT_GROUP_HOST; - qemu_mutex_unlock_iothread(); ssd->worker->create_primary_surface(ssd->worker, 0, &surface); - qemu_mutex_lock_iothread(); } void qemu_spice_destroy_host_primary(SimpleSpiceDisplay *ssd) { dprint(1, "%s:\n", __FUNCTION__); - qemu_mutex_unlock_iothread(); ssd->worker->destroy_primary_surface(ssd->worker, 0); - qemu_mutex_lock_iothread(); } void qemu_spice_vm_change_state_handler(void *opaque, int running, int reason) @@ -197,9 +193,7 @@ void qemu_spice_vm_change_state_handler(void *opaque, int running, int reason) if (running) { ssd->worker->start(ssd->worker); } else { - qemu_mutex_unlock_iothread(); ssd->worker->stop(ssd->worker); - qemu_mutex_lock_iothread(); } ssd->running = running; } |