diff options
author | Christian Beier <dontmind@freeshell.org> | 2011-01-24 23:32:24 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2011-02-07 13:50:47 +0100 |
commit | 9f49600787e99b6d1dc0c52afe1647ef3429cc7b (patch) | |
tree | 7ad190e1005543cdde1aaabb86f0f25f9673d427 /rfb | |
parent | 67b16cdf9099653bc19b01e628036f99729eb2f9 (diff) | |
download | libvncserver-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; /** |