From 84fff4d373d10a3676e239c02e759cffff5b5cf2 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Fri, 16 Jun 2006 13:36:48 +0000 Subject: [PATCH] small fix --- lib/gdi/grc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gdi/grc.cpp b/lib/gdi/grc.cpp index a9bac4af..274d221b 100644 --- a/lib/gdi/grc.cpp +++ b/lib/gdi/grc.cpp @@ -125,7 +125,8 @@ void *gRC::thread() m_notify_pump.send(1); } #ifndef SYNC_PAINT - pthread_cond_wait(&cond, &mutex); + while(rp == wp) + pthread_cond_wait(&cond, &mutex); pthread_mutex_unlock(&mutex); #endif } -- 2.30.2