Risolti alcuni bug + shourtcut
[qmemory] / testThread.cpp
index b41a56e..c6c6719 100644 (file)
@@ -18,7 +18,7 @@ TestThread::~TestThread()
 
 }
 void TestThread::run(){
-    sleep(1);
+    sleep(2);
     forever{
         mutex.lock();
 
@@ -56,7 +56,7 @@ void TestThread::addUserInput(int inputUser){
             if(index==sequenza.size()){
                 sleep(1);
                 attendiInputUtente.wakeAll();
-                index=0;
+
             }
         }
         else{