def __addToQueue(self, method, args): if self.DEBUG: toLog("ThreadWrapper %s: Queued job %s %s"%(self.getName(), method, args), LOG_DEBUG) threadpool.getThreadPool().logThreads() self.__queue.append([method,args, long(time.time())])
from core.threadpool import threadpool tpool=threadpool.getThreadPool() print str(tpool)
def __runInThreadPool(self,method,args): threadpool.getThreadPool().runThread(self,method,args)
def getThreadPool(): return threadpool.getThreadPool()
def shutdown(seconds): threadpool.getThreadPool().shutdown(seconds)
from core.threadpool import threadpool tpool = threadpool.getThreadPool() print str(tpool)