Package Bio :: Package MultiProc :: Module Task :: Class Task
[hide private]
[frames] | no frames]

Class Task

source code

Contains information for one process.

Implements part of the Thread interface.

Methods: start Start this task. Should be called once. run Called by start to really run the task. getName Get the name of the task. setName Set the name of the task. isAlive Whether this Task is still running.

Members: retval Return value of the function.

Instance Methods [hide private]
 
__init__(self, group=None, target=None, name=None, args=(), kwargs={})
Task([group][, target][, name][, args][, kwargs])
source code
 
__del__(self) source code
 
start(S)
Start this task.
source code
 
run(S)
Run this task.
source code
name
getName(S) source code
 
setName(S, name) source code
boolean
isAlive(S) source code
Method Details [hide private]

__init__(self, group=None, target=None, name=None, args=(), kwargs={})
(Constructor)

source code 

Task([group][, target][, name][, args][, kwargs])

Create a task object. group should be None and is reserved for future expansion. target is the function to be called. name is the name of the thread. args and kwargs are the arguments to be passed to target.

start(S)

source code 

Start this task. Should only be called once.

run(S)

source code 

Run this task. Should only be called by S.start().