예제 #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())])
예제 #2
0
파일: threads.py 프로젝트: moxwose/freeIBS
from core.threadpool import threadpool
tpool=threadpool.getThreadPool()
print str(tpool)
예제 #3
0
 def __runInThreadPool(self,method,args):
     threadpool.getThreadPool().runThread(self,method,args)
예제 #4
0
def getThreadPool():
    return threadpool.getThreadPool()
예제 #5
0
def shutdown(seconds):
    threadpool.getThreadPool().shutdown(seconds)
예제 #6
0
파일: twrapper.py 프로젝트: moxwose/freeIBS
    def __runInThreadPool(self,method,args):
	threadpool.getThreadPool().runThread(self,method,args)
예제 #7
0
def shutdown(seconds):
    threadpool.getThreadPool().shutdown(seconds)
예제 #8
0
파일: threads.py 프로젝트: sankopay/IBSng
from core.threadpool import threadpool
tpool = threadpool.getThreadPool()
print str(tpool)