|
|
@ -150,7 +150,7 @@ void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,in
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
sraRgnOr(cl->modifiedRegion,copyRegion);
|
|
|
|
sraRgnOr(cl->modifiedRegion,copyRegion);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TQT_SIGNAL(cl->updateCond);
|
|
|
|
TSIGNAL(cl->updateCond);
|
|
|
|
UNLOCK(cl->updateMutex);
|
|
|
|
UNLOCK(cl->updateMutex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -208,7 +208,7 @@ void rfbMarkRegionAsModified(rfbScreenInfoPtr rfbScreen,sraRegionPtr modRegion)
|
|
|
|
while((cl=rfbClientIteratorNext(iterator))) {
|
|
|
|
while((cl=rfbClientIteratorNext(iterator))) {
|
|
|
|
LOCK(cl->updateMutex);
|
|
|
|
LOCK(cl->updateMutex);
|
|
|
|
sraRgnOr(cl->modifiedRegion,modRegion);
|
|
|
|
sraRgnOr(cl->modifiedRegion,modRegion);
|
|
|
|
TQT_SIGNAL(cl->updateCond);
|
|
|
|
TSIGNAL(cl->updateCond);
|
|
|
|
UNLOCK(cl->updateMutex);
|
|
|
|
UNLOCK(cl->updateMutex);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -308,7 +308,7 @@ clientInput(void *data)
|
|
|
|
|
|
|
|
|
|
|
|
/* Get rid of the output thread. */
|
|
|
|
/* Get rid of the output thread. */
|
|
|
|
LOCK(cl->updateMutex);
|
|
|
|
LOCK(cl->updateMutex);
|
|
|
|
TQT_SIGNAL(cl->updateCond);
|
|
|
|
TSIGNAL(cl->updateCond);
|
|
|
|
UNLOCK(cl->updateMutex);
|
|
|
|
UNLOCK(cl->updateMutex);
|
|
|
|
IF_PTHREADS(pthread_join(output_thread, NULL));
|
|
|
|
IF_PTHREADS(pthread_join(output_thread, NULL));
|
|
|
|
|
|
|
|
|
|
|
|