Trees | Index | Help |
---|
Package Bio :: Package MultiProc :: Module Scheduler :: Class Scheduler |
|
Schedules threads to be run. No prioritization. Nothing fancy.
Methods: add Add a thread to be run. num_left Return the number of threads left. num_running Return the number of threads currently running. run Main loop. Returns whether there's still threads left.Method Summary | |
---|---|
Scheduler(max_threads[, start_fn][, finish_fn]) -> object | |
S.add(thread) | |
S.num_left() -> number of threads left to run | |
S.num_running() -> number of threads currently running | |
S.run() -> boolean |
Method Details |
---|
__init__(self,
max_threads,
start_fn=None,
finish_fn=None)
|
add(self, thread)S.add(thread) |
num_left(self)S.num_left() -> number of threads left to run |
num_running(self)S.num_running() -> number of threads currently running |
run(self)S.run() -> boolean Execute the main loop. Return a boolean indicating whether threads are still running. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Sat Jul 16 15:49:04 2005 | http://epydoc.sf.net |