|
HWRF
trunk@4391
|
Stores a piece of work. More...
Stores a piece of work.
This is an internal implementation class. Do not use it directly. It stores one piece of work to be done by a worker thread in a WorkPool.
Definition at line 16 of file workpool.py.
Public Member Functions | |
| def | __init__ |
| Create a WorkTask whose job is to call work() More... | |
| def | args (self) |
| The arguments to the work function. | |
Public Attributes | |
| work | |
| The function this WorkTask should call. | |
Properties | |
| exception | |
| The exception that was raised by the work function. More... | |
| done | |
| Is this work task done? More... | |
| def produtil.workpool.WorkTask.__init__ | ( | self, | |
| work, | |||
args = None |
|||
| ) |
Create a WorkTask whose job is to call work()
| work | the function to call |
| args | the arguments to work |
Definition at line 21 of file workpool.py.
|
static |
Is this work task done?
Definition at line 73 of file workpool.py.
|
static |
The exception that was raised by the work function.
Definition at line 55 of file workpool.py.
1.8.10