summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authordscho <dscho>2008-01-30 20:38:51 +0000
committerdscho <dscho>2008-01-30 20:38:51 +0000
commitce8d6c2409ca15f0fb5800b1c2c0a03e86683fc2 (patch)
treec3c6200b7442bab417b05ae90bdf08037c98dc83 /rfb
parent5b9b4543616db4cefc5eb052287a32f03fdd8e85 (diff)
downloadlibvncserver-ce8d6c2409ca15f0fb5800b1c2c0a03e86683fc2.zip
libvncserver-ce8d6c2409ca15f0fb5800b1c2c0a03e86683fc2.tar.gz
Make ZYWRLE thread-safe for multiple clients
ZYWRLE used a static buffer, which does not work too well if you have more than one client in a threaded server. Instead, we have the data in the client structure now. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index 0dad2b9..aed454c 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -579,6 +579,8 @@ typedef struct _rfbClientRec {
#ifdef LIBVNCSERVER_HAVE_LIBZ
void* zrleData;
+ int zywrleLevel;
+ int zywrleBuf[rfbZRLETileWidth * rfbZRLETileHeight];
#endif
/* if progressive updating is on, this variable holds the current
OpenPOWER on IntegriCloud