Trees | Index | Help |
---|
Package threadutils :: Module ThreadPool :: Class ThreadPool |
|
Queue
--+ |ThreadPoolMixIn
--+ | ThreadPool
Method Summary | |
---|---|
Create a pool of threads | |
__del__(self)
| |
__getstate__(self)
| |
Close the ThreadPool object | |
Inherited from ThreadPoolMixIn | |
| |
Begin a synchronous block. | |
Wait to finish all the threads in this pool, since the self.begin call | |
Execute |function| into a diferent thread with args (positional arguments) and argd (named arguments). | |
Returns the obj thread to the pool, intern method | |
Inherited from Queue | |
Return True if the queue is empty, False otherwise (not reliable!). | |
Return True if the queue is full, False otherwise (not reliable!). | |
Remove and return an item from the queue. | |
Remove and return an item from the queue without blocking. | |
Put an item into the queue. | |
Put an item into the queue without blocking. | |
Return the approximate size of the queue (not reliable!). | |
| |
| |
| |
| |
| |
|
Method Details |
---|
__init__(self,
maxthreads,
can_grow=False)
Create a pool of threads
|
close(self)Close the ThreadPool object
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Oct 14 11:50:52 2006 | http://epydoc.sf.net |