HWRF  trunk@4391
Public Member Functions | Public Attributes | Properties | List of all members
produtil.workpool.WorkTask Class Reference

Stores a piece of work. More...

Detailed Description

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.

Inheritance diagram for produtil.workpool.WorkTask:

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...
 

Constructor & Destructor Documentation

def produtil.workpool.WorkTask.__init__ (   self,
  work,
  args = None 
)

Create a WorkTask whose job is to call work()

Parameters
workthe function to call
argsthe arguments to work

Definition at line 21 of file workpool.py.

Property Documentation

produtil.workpool.WorkTask.done
static
Initial value:
1 = property(_get_done,_set_done,_del_done,
2  )

Is this work task done?

Definition at line 73 of file workpool.py.

produtil.workpool.WorkTask.exception
static
Initial value:
1 = property(_get_exception,_set_exception,_del_exception,
2  )

The exception that was raised by the work function.

Definition at line 55 of file workpool.py.


The documentation for this class was generated from the following file: