def __init__(self,ConnectionHandler,server,max_con=-1,autokick=True):
     BasicTaskManager.__init__(self,ConnectionHandler, server, max_con)
     self._clients=[]
     self._handlers={}
     self._socket=server.socket
     self._dieHandler=[]
     self._autokick=autokick
 def __init__(self,ch,serv,num_threads=5):
     BasicTaskManager.__init__(self,None,None,num_threads)
     
     
     def workerList(self):
         for i in range(num_threads):
             yield PoolWorker(self._tasks,i,self)
         
     self._tasks = Queue(num_threads)
     self._worker =[w for w in workerList(self)]
 def __init__(self, _, server, max):
     """ @param server: the server
     """
     BasicTaskManager.__init__(self, _, server, max)
     self._tpoolWorkerCount = 0
     self._threadPools = 0
     self._tpools = None
     if max < 0:
         poolcount = 64
     else:
         poolcount = math.ceil(max / 64)
     self.setThreadParameter(64, poolcount)
     self._maxCon = max
     self._info = TaskManagerInfo(self)
 def die(self):
     BasicTaskManager.die(self)
     for p in self._tpools:
         p.die()