def spawnThread(self): debug = 0 if debug: print "Spawning new thread" t = Thread(target=self.threadloop) t._processing = 0 t.start() self._threadPool.append(t) self._threadCount += 1 if debug: print "New Thread Spawned, threadCount=", self._threadCount