Home | Trees | Index | Help |
|
---|
Module threadpool :: Class WorkerThread |
|
object
--+ |_Verbose
--+ |Thread
--+ | WorkerThread
Background thread connected to the requests/results queues.
A worker thread sits in the background and picks up work requests from one queue and puts the results in another until it is dismissed.
Method Summary | |
---|---|
Set up thread in daemonic mode and start it immediatedly. | |
Sets a flag to tell the thread to exit when done with current job. | |
Repeatedly process the job queue until told to exit. | |
Inherited from Thread | |
| |
| |
| |
| |
| |
| |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__init__(self,
requestsQueue,
resultsQueue,
**kwds)
|
dismiss(self)Sets a flag to tell the thread to exit when done with current job. |
run(self)Repeatedly process the job queue until told to exit.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 23 13:37:22 2006 | http://epydoc.sf.net |