small fix
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 16 Jun 2006 13:36:48 +0000 (13:36 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Fri, 16 Jun 2006 13:36:48 +0000 (13:36 +0000)
lib/gdi/grc.cpp

index a9bac4a..274d221 100644 (file)
@@ -125,7 +125,8 @@ void *gRC::thread()
                                m_notify_pump.send(1);
                        }
 #ifndef SYNC_PAINT
                                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
                }
                        pthread_mutex_unlock(&mutex);
 #endif
                }