X-Git-Url: http://git.maemo.org/git/?p=qmemory;a=blobdiff_plain;f=testThread.cpp;h=e3087e1ef0163ff8adc9b5fe3623552905c4a70a;hp=e8d047760bab90d5da0e22218ccfee18218a8ddd;hb=44f2521902036db1caced5a4f418e78ef3a686ab;hpb=d0fcc08805061548b05426b241b67a9b98e8cc46 diff --git a/testThread.cpp b/testThread.cpp index e8d0477..e3087e1 100644 --- a/testThread.cpp +++ b/testThread.cpp @@ -5,7 +5,7 @@ #include TestThread::TestThread(QObject *parent):QThread(parent){ colore=0; - attendiInputUtente=false; + index=0; _score=0; @@ -16,8 +16,9 @@ TestThread::~TestThread(){ } void TestThread::run(){ + sleep(1); while(true){ - + mutex.lock(); qsrand(QDateTime::currentDateTime().toTime_t()); sequenza.append(qrand()%9); int i=0; @@ -28,18 +29,17 @@ void TestThread::run(){ { emit generate(sequenza.at(i)); qDebug()<