HWRF  trunk@4391
Classes | Functions | Variables
produtil.workpool Namespace Reference

Contains the WorkPool class, which maintains pools of threads that perform small tasks. More...

Detailed Description

Contains the WorkPool class, which maintains pools of threads that perform small tasks.

Classes

class  WorkPool
 A pool of threads that perform some list of tasks. More...
 
class  WorkTask
 Stores a piece of work. More...
 
class  WrongThread
 Raised when a thread unrelated to a WorkPool attempts to interact with the WorkPool. More...
 

Functions

def do_nothing ()
 Does nothing. More...
 

Variables

list __all__ = ["WorkPool","WrongThread"]
 List of symbols exported by "from produtil.workpool import *".
 
tuple TERMINATE = WorkTask(do_nothing)
 Special constant WorkTask used to terminate a WorkPool. More...
 

Function Documentation

def produtil.workpool.do_nothing ( )

Does nothing.

Used to implement worker termination.

Definition at line 76 of file workpool.py.

Variable Documentation

produtil.workpool.TERMINATE = WorkTask(do_nothing)

Special constant WorkTask used to terminate a WorkPool.

Do not modify.

Definition at line 82 of file workpool.py.