vnc: threaded VNC server
authorCorentin Chary <corentincj@iksaif.net>
Wed, 7 Jul 2010 18:58:02 +0000 (20:58 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 26 Jul 2010 22:36:14 +0000 (17:36 -0500)
commit72c3de171e6ec4aef87eb1952b52e8743a34fd1f
tree5e7c71d3f68ed04d33ffc53a182c29cdbd8b5334
parent814639c4709ac5f357842f84b47a7995b63b3dbb
vnc: threaded VNC server

Implement a threaded VNC server using the producer-consumer model.
The main thread will push encoding jobs (a list a rectangles to update)
in a queue, and the VNC worker thread will consume that queue and send
framebuffer updates to the output buffer.

The threaded VNC server can be enabled with ./configure --enable-vnc-thread.

If you don't want it, just use ./configure --disable-vnc-thread and a syncrhonous
queue of job will be used (which as exactly the same behavior as the old queue).
If you disable the VNC thread, all thread related code will not be built and there will
be no overhead.

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Makefile.objs
configure
ui/vnc-jobs-async.c [new file with mode: 0644]
ui/vnc-jobs-sync.c [new file with mode: 0644]
ui/vnc-jobs.h [new file with mode: 0644]
ui/vnc.c
ui/vnc.h