Lines Matching full:output
45 * - VncState::output lock: used to make sure the output buffer is not corrupted
50 * uses trylock()) but the output lock is not held because the thread works on
51 * its own output buffer.
52 * When the encoding job is done, the worker thread will hold the output lock
53 * and copy its output buffer in vs->output.
151 if (vs->ioc != NULL && buffer_empty(&vs->output)) { in vnc_jobs_consume_buffer()
161 buffer_move(&vs->output, &vs->jobs_buffer); in vnc_jobs_consume_buffer()
164 vs->force_update_offset = vs->output.offset; in vnc_jobs_consume_buffer()
181 buffer_init(&local->output, "vnc-worker-output"); in vnc_async_encoding_start()
202 buffer_free(&local->output); in vnc_async_encoding_end()
265 if (buffer_empty(&job->vs->output)) { in vnc_worker_thread_loop()
269 * one for vs.output in vnc_worker_thread_loop()
271 buffer_move_empty(&vs.output, &job->vs->output); in vnc_worker_thread_loop()
275 /* Make a local copy of vs and switch output buffers */ in vnc_worker_thread_loop()
283 saved_offset = vs.output.offset; in vnc_worker_thread_loop()
311 vs.output.buffer[saved_offset] = (n_rectangles >> 8) & 0xFF; in vnc_worker_thread_loop()
312 vs.output.buffer[saved_offset + 1] = n_rectangles & 0xFF; in vnc_worker_thread_loop()
316 buffer_move(&job->vs->jobs_buffer, &vs.output); in vnc_worker_thread_loop()
322 buffer_reset(&vs.output); in vnc_worker_thread_loop()