add a simple printLock

This commit is contained in:
Jonathan Warren 2013-04-29 17:20:09 -04:00
parent 32d8a78fc7
commit 8e042930f2
1 changed files with 3 additions and 1 deletions

View File

@ -1989,7 +1989,9 @@ class sendDataThread(QThread):
QThread.__init__(self, parent)
self.mailbox = Queue.Queue()
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 = ''
def setup(self,sock,HOST,PORT,streamNumber,objectsOfWhichThisRemoteNodeIsAlreadyAware):