Package SCons :: Module Job :: Class ThreadPool
[show private | hide private]
[frames | no frames]

Class ThreadPool


This class is responsible for spawning and managing worker threads.


Method Summary
  __init__(self, num)
Create the request and reply queues, and 'num' worker threads.
  cleanup(self)
Shuts down the thread pool, giving each worker thread a chance to shut down gracefully.
  get(self, block)
Remove and return a result tuple from the results queue.
  preparation_failed(self, obj)
  put(self, obj)
Put task into request queue.

Method Details

__init__(self, num)
(Constructor)

Create the request and reply queues, and 'num' worker threads.

cleanup(self)

Shuts down the thread pool, giving each worker thread a chance to shut down gracefully.

get(self, block=True)

Remove and return a result tuple from the results queue.

put(self, obj)

Put task into request queue.


Generated by Epydoc 2.1 on Wed Dec 12 09:39:31 2007 http://epydoc.sf.net