[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RfC PATCH 08/10] name vnc buffers
From: |
Peter Lieven |
Subject: |
Re: [Qemu-devel] [RfC PATCH 08/10] name vnc buffers |
Date: |
Fri, 25 Sep 2015 09:58:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
Am 24.09.2015 um 10:42 schrieb Gerd Hoffmann:
> Signed-off-by: Gerd Hoffmann <address@hidden>
> ---
> ui/vnc-jobs.c | 1 +
> ui/vnc.c | 16 ++++++++++++++++
> 2 files changed, 17 insertions(+)
>
> diff --git a/ui/vnc-jobs.c b/ui/vnc-jobs.c
> index 9824c34..7a234da 100644
> --- a/ui/vnc-jobs.c
> +++ b/ui/vnc-jobs.c
> @@ -303,6 +303,7 @@ static VncJobQueue *vnc_queue_init(void)
>
> qemu_cond_init(&queue->cond);
> qemu_mutex_init(&queue->mutex);
> + qio_buffer_init(&queue->buffer, "vnc-job-queue");
> QTAILQ_INIT(&queue->jobs);
> return queue;
> }
> diff --git a/ui/vnc.c b/ui/vnc.c
> index e4b0e3a..fc0311f 100644
> --- a/ui/vnc.c
> +++ b/ui/vnc.c
> @@ -2978,6 +2978,22 @@ static void vnc_connect(VncDisplay *vd, int csock,
> vs->csock = csock;
> vs->vd = vd;
>
> + qio_buffer_init(&vs->input, "vnc-input/%d", csock);
> + qio_buffer_init(&vs->output, "vnc-output/%d", csock);
> + qio_buffer_init(&vs->ws_input, "vnc-ws_input/%d", csock);
> + qio_buffer_init(&vs->ws_output, "vnc-ws_output/%d", csock);
> + qio_buffer_init(&vs->jobs_buffer, "vnc-jobs_buffer/%d", csock);
> +
> + qio_buffer_init(&vs->tight.tight, "vnc-tight/%d", csock);
> + qio_buffer_init(&vs->tight.zlib, "vnc-tight-zlib/%d", csock);
> + qio_buffer_init(&vs->tight.gradient, "vnc-tight-gradient/%d", csock);
> + qio_buffer_init(&vs->tight.jpeg, "vnc-tight-jpeg/%d", csock);
> + qio_buffer_init(&vs->tight.png, "vnc-tight-png/%d", csock);
> + qio_buffer_init(&vs->zlib.zlib, "vnc-zlib/%d", csock);
> + qio_buffer_init(&vs->zrle.zrle, "vnc-zrle/%d", csock);
> + qio_buffer_init(&vs->zrle.fb, "vnc-zrle-fb/%d", csock);
> + qio_buffer_init(&vs->zrle.zlib, "vnc-zrle-zlib/%d", csock);
> +
> if (skipauth) {
> vs->auth = VNC_AUTH_NONE;
> vs->subauth = VNC_AUTH_INVALID;
You also might want to name this one:
diff --git a/ui/vnc-jobs.c b/ui/vnc-jobs.c
index dfc5139..65bae26 100644
--- a/ui/vnc-jobs.c
+++ b/ui/vnc-jobs.c
@@ -211,6 +211,8 @@ static int vnc_worker_thread_loop(VncJobQueue *queue)
int n_rectangles;
int saved_offset;
+ qio_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);
Peter
- Re: [Qemu-devel] [RfC PATCH 04/10] io: add qio_buffer_init, (continued)
- [Qemu-devel] [RfC PATCH 01/10] io/ makefile fluff, Gerd Hoffmann, 2015/09/24
- [Qemu-devel] [RfC PATCH 06/10] io: add qio_buffer_move, Gerd Hoffmann, 2015/09/24
- [Qemu-devel] [RfC PATCH 09/10] vnc: kill jobs queue buffer, Gerd Hoffmann, 2015/09/24
- [Qemu-devel] [RfC PATCH 07/10] io: add qio_buffer tracing, Gerd Hoffmann, 2015/09/24
- [Qemu-devel] [RfC PATCH 08/10] name vnc buffers, Gerd Hoffmann, 2015/09/24
- [Qemu-devel] [RfC PATCH 05/10] io: add qio_buffer_move_empty, Gerd Hoffmann, 2015/09/24
- [Qemu-devel] [RfC PATCH 10/10] vnc-jobs: move buffer reset, use new buffer move, Gerd Hoffmann, 2015/09/24
- [Qemu-devel] [RfC PATCH 02/10] io: pull Buffer code out of VNC module, Gerd Hoffmann, 2015/09/24
- Re: [Qemu-devel] [RfC PATCH 00/10] vnc buffer handling, Daniel P. Berrange, 2015/09/24
- Re: [Qemu-devel] [RfC PATCH 00/10] vnc buffer handling, Peter Lieven, 2015/09/25