From 0f795b8afd0f0380d432a9dcba270ae60c19c105 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 3 Mar 2010 19:20:02 +0100 Subject: [PATCH] Risolti alcuni bug del thread Ancora da testare sul N900 --- testThread.cpp | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/testThread.cpp b/testThread.cpp index c6c6719..84915c3 100644 --- a/testThread.cpp +++ b/testThread.cpp @@ -18,15 +18,13 @@ TestThread::~TestThread() } void TestThread::run(){ - sleep(2); + sleep(1); forever{ mutex.lock(); - qsrand(QDateTime::currentDateTime().toTime_t()); sequenza.append(qrand()%9); int i=0; index=0; - emit disableInterface(); while(i