seems to be a near final version
authordisplacer
Tue, 26 Sep 2006 20:02:32 +0000
changeset 171 7acf6c70ea5f
parent 170 ef1031ba44fc
child 172 5294ada3910b
seems to be a near final version
QTfrontend/hwmap.cpp
--- a/QTfrontend/hwmap.cpp	Tue Sep 26 19:59:10 2006 +0000
+++ b/QTfrontend/hwmap.cpp	Tue Sep 26 20:02:32 2006 +0000
@@ -9,7 +9,6 @@
 #include <QList>
 
 QList<HWMap*> srvsList;
-QMutex tcpSrvMut;
 
 HWMap::HWMap() :
   m_isStarted(false)
@@ -35,11 +34,7 @@
   im.setNumColors(2);
 
   IPCSocket->close();
-  //IPCSocket->deleteLater();
-  //IPCSocket = 0;
   IPCServer->close();
-  //deleteLater();
-
 
   emit ImageReceived(im);
   readbuffer.clear();
@@ -86,24 +81,19 @@
 
 void HWMap::tcpServerReady()
 {
-  tcpSrvMut.lock();
   disconnect(srvsList.front(), SIGNAL(isReadyNow()), *(++srvsList.begin()), SLOT(tcpServerReady()));
   srvsList.pop_front();
-  tcpSrvMut.unlock();
 
   RealStart();
 }
 
 void HWMap::Start()
 {
-  tcpSrvMut.lock();
   if(srvsList.isEmpty()) {
     srvsList.push_back(this);
-    tcpSrvMut.unlock();
   } else {
     connect(srvsList.back(), SIGNAL(isReadyNow()), this, SLOT(tcpServerReady()));
     srvsList.push_back(this);
-    tcpSrvMut.unlock();
     return;
   }