Exemplo n.º 1
0
 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())])
Exemplo n.º 2
0
from core.threadpool import threadpool
tpool=threadpool.getThreadPool()
print str(tpool)
Exemplo n.º 3
0
 def __runInThreadPool(self,method,args):
     threadpool.getThreadPool().runThread(self,method,args)
Exemplo n.º 4
0
def getThreadPool():
    return threadpool.getThreadPool()
Exemplo n.º 5
0
def shutdown(seconds):
    threadpool.getThreadPool().shutdown(seconds)
Exemplo n.º 6
0
    def __runInThreadPool(self,method,args):
	threadpool.getThreadPool().runThread(self,method,args)
Exemplo n.º 7
0
def shutdown(seconds):
    threadpool.getThreadPool().shutdown(seconds)
Exemplo n.º 8
0
from core.threadpool import threadpool
tpool = threadpool.getThreadPool()
print str(tpool)