summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-01-24 23:32:24 +0100
committerChristian Beier <dontmind@freeshell.org>2011-02-07 13:50:47 +0100
commit9f49600787e99b6d1dc0c52afe1647ef3429cc7b (patch)
tree7ad190e1005543cdde1aaabb86f0f25f9673d427 /rfb
parent67b16cdf9099653bc19b01e628036f99729eb2f9 (diff)
downloadlibvncserver-9f49600787e99b6d1dc0c52afe1647ef3429cc7b.zip
libvncserver-9f49600787e99b6d1dc0c52afe1647ef3429cc7b.tar.gz
libvncserver: Make RRE, CoRRE and Ultra encodings thread-safe.
This adds generic before/after encoding buffers to the rfbClient struct, so there is no need for thread local storage. Signed-off-by: Christian Beier <dontmind@freeshell.org>
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index fa530b3..7c15bd8 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -617,6 +617,13 @@ typedef struct _rfbClientRec {
MUTEX(sendMutex);
#endif
+ /* buffers to hold pixel data before and after encoding.
+ per-client for thread safety */
+ char *beforeEncBuf;
+ int beforeEncBufSize;
+ char *afterEncBuf;
+ int afterEncBufSize;
+ int afterEncBufLen;
} rfbClientRec, *rfbClientPtr;
/**
OpenPOWER on IntegriCloud