summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2001-10-03 17:40:57 +0000
committerdscho <dscho>2001-10-03 17:40:57 +0000
commit2a683877ecf21311cd05d4d509e3e2e4e43adae6 (patch)
treedc42967df88c14f1c64dff1015acba81d2ae095d
parentb3f2c7d08178aa45c5687cac338d65db5d92d01c (diff)
downloadlibtdevnc-2a683877.tar.gz
libtdevnc-2a683877.zip
working on IRIX pthreads problem
-rw-r--r--TODO3
-rw-r--r--main.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/TODO b/TODO
index f17d3f0..a78d83e 100644
--- a/TODO
+++ b/TODO
@@ -6,7 +6,8 @@ documentation
perhaps the option (or just hint) not to mark very tiny regions as
modified, because that is inefficient for the encodings.
optionally dont draw rich cursors as xcursors
-cursor smears on IRIX with pthreads, then has bus error.
+cursor smears on IRIX with pthreads, then has bus error. has to be a mutex
+ problem in cursor routines.
later:
------
diff --git a/main.c b/main.c
index 7362e4d..2b6cc25 100644
--- a/main.c
+++ b/main.c
@@ -145,10 +145,10 @@ clientOutput(void *data)
updateRegion = sraRgnCreateRgn(cl->modifiedRegion);
sraRgnAnd(updateRegion,cl->requestedRegion);
sraRgnSubtract(cl->modifiedRegion,updateRegion);
- UNLOCK(cl->updateMutex);
/* Now actually send the update. */
rfbSendFramebufferUpdate(cl, updateRegion);
+ UNLOCK(cl->updateMutex);
sraRgnDestroy(updateRegion);
}