コード例 #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
ファイル: thread_main.py プロジェクト: moxwose/freeIBS
def shutdown(seconds):
    threadpool.getThreadPool().shutdown(seconds)
コード例 #8
0
ファイル: threads.py プロジェクト: sankopay/IBSng
from core.threadpool import threadpool
tpool = threadpool.getThreadPool()
print str(tpool)