aboutsummaryrefslogtreecommitdiff
path: root/ui/vnc-jobs.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-10-30 12:10:02 +0100
committerGerd Hoffmann <kraxel@redhat.com>2015-11-05 09:08:52 +0100
commit543b95801f98ab2cb7413c39779fd5b7f363ce3d (patch)
tree1d7cfbdc949aa28bdba662a844a1240f13804f20 /ui/vnc-jobs.c
parentd2b90718d25ed6dc8a2bb7f06504e6500dcc7bae (diff)
downloadqemu-543b95801f98ab2cb7413c39779fd5b7f363ce3d.zip
qemu-543b95801f98ab2cb7413c39779fd5b7f363ce3d.tar.gz
qemu-543b95801f98ab2cb7413c39779fd5b7f363ce3d.tar.bz2
vnc: attach names to buffers
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Peter Lieven <pl@kamp.de> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1446203414-4013-8-git-send-email-kraxel@redhat.com
Diffstat (limited to 'ui/vnc-jobs.c')
-rw-r--r--ui/vnc-jobs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/vnc-jobs.c b/ui/vnc-jobs.c
index 22c9abc..2e6c15f 100644
--- a/ui/vnc-jobs.c
+++ b/ui/vnc-jobs.c
@@ -218,6 +218,8 @@ static int vnc_worker_thread_loop(VncJobQueue *queue)
int n_rectangles;
int saved_offset;
+ buffer_init(&vs.output, "vnc-worker-output");
+
vnc_lock_queue(queue);
while (QTAILQ_EMPTY(&queue->jobs) && !queue->exit) {
qemu_cond_wait(&queue->cond, &queue->mutex);
@@ -302,6 +304,7 @@ static VncJobQueue *vnc_queue_init(void)
qemu_cond_init(&queue->cond);
qemu_mutex_init(&queue->mutex);
+ buffer_init(&queue->buffer, "vnc-job-queue");
QTAILQ_INIT(&queue->jobs);
return queue;
}