From 2a683877ecf21311cd05d4d509e3e2e4e43adae6 Mon Sep 17 00:00:00 2001
From: dscho <dscho>
Date: Wed, 3 Oct 2001 17:40:57 +0000
Subject: working on IRIX pthreads problem

---
 TODO   | 3 ++-
 main.c | 2 +-
 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);
     }
-- 
cgit v1.2.3

