Package threadutils :: Module ThreadPool :: Class ThreadPoolShared
[show private | hide private]
[frames | no frames]

Class ThreadPoolShared

ThreadPoolMixIn --+
                  |
                 ThreadPoolShared


A Fake ThreadPool that share Thread objects (RunThread) between ThreadPool's objects. Useful to save resources
Method Summary
  __init__(self, maxthreads, queue, can_grow)
    Inherited from ThreadPoolMixIn
  _init_(self, maxthreads, can_grow)
  begin(self, cnt)
Begin a synchronous block.
  close(self)
  end(self)
Wait to finish all the threads in this pool, since the self.begin call
  execute(self, endfunction, function, *args, **argd)
Execute |function| into a diferent thread with args (positional arguments) and argd (named arguments).
  put_block(self, obj)
Returns the obj thread to the pool, intern method

Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 http://epydoc.sf.net