add a simple printLock

This commit is contained in:
Jonathan Warren 2013-04-29 17:20:09 -04:00
parent 32d8a78fc7
commit 8e042930f2

View File

@ -1989,7 +1989,9 @@ class sendDataThread(QThread):
QThread.__init__(self, parent) QThread.__init__(self, parent)
self.mailbox = Queue.Queue() self.mailbox = Queue.Queue()
sendDataQueues.append(self.mailbox) sendDataQueues.append(self.mailbox)
print 'The length of sendDataQueues is now:', len(sendDataQueues) printLock.acquire()
print 'The length of sendDataQueues at sendDataThread init is:', len(sendDataQueues)
printLock.release()
self.data = '' self.data = ''
def setup(self,sock,HOST,PORT,streamNumber,objectsOfWhichThisRemoteNodeIsAlreadyAware): def setup(self,sock,HOST,PORT,streamNumber,objectsOfWhichThisRemoteNodeIsAlreadyAware):