Problemi con emit score master
authorEmmanuel Granatello <emmanuelgranatello@gmail.com>
Thu, 4 Mar 2010 11:52:53 +0000 (12:52 +0100)
committerEmmanuel Granatello <emmanuelgranatello@gmail.com>
Thu, 4 Mar 2010 11:52:53 +0000 (12:52 +0100)
testThread.cpp

index 84915c3..5dd1a2f 100644 (file)
@@ -48,8 +48,9 @@ void TestThread::addUserInput(int inputUser){
             index++;
             _score++;
             emit score(_score);
-            if(index==sequenza.size()){
-                sleep(1);
+
+           if(index==sequenza.size()){
+                msleep(300);
                 attendiInputUtente.wakeAll();
             }
         }