diff options
author | dscho <dscho> | 2001-10-10 15:07:17 +0000 |
---|---|---|
committer | dscho <dscho> | 2001-10-10 15:07:17 +0000 |
commit | fad7881732f39780fecd0a0c678392f002b88e26 (patch) | |
tree | e04eb7c43100a2eefd51222fb15550b289c882dd /main.c | |
parent | 631d3be5408c9b487bb75ecc25177de4901b71d5 (diff) | |
download | libtdevnc-fad7881732f39780fecd0a0c678392f002b88e26.tar.gz libtdevnc-fad7881732f39780fecd0a0c678392f002b88e26.zip |
pthreads corrections
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -85,17 +85,15 @@ void rfbScheduleCopyRegion(rfbScreenInfoPtr rfbScreen,sraRegionPtr copyRegion,in /* while(!sraRgnEmpty(cl->copyRegion)) */ { #ifdef HAVE_PTHREADS - if(cl->screen->backgroundLoop) { - SIGNAL(cl->updateCond); - UNLOCK(cl->updateMutex); - LOCK(cl->updateMutex); - } else + if(!cl->screen->backgroundLoop) #endif { sraRegionPtr updateRegion = sraRgnCreateRgn(cl->modifiedRegion); sraRgnOr(updateRegion,cl->copyRegion); + UNLOCK(cl->updateMutex); rfbSendFramebufferUpdate(cl,updateRegion); sraRgnDestroy(updateRegion); + continue; } } } else { @@ -525,7 +523,11 @@ void rfbScreenCleanup(rfbScreenInfoPtr rfbScreen) free(rfbScreen); } +#ifdef HAVE_PTHREADS +void rfbInitServerWithPthreads(rfbScreenInfoPtr rfbScreen) +#else void rfbInitServer(rfbScreenInfoPtr rfbScreen) +#endif { #ifdef WIN32 WSADATA trash; |