Trees | Indices | Help |
---|
|
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.
|
|||
|
|||
boolean |
|
||
|
|||
number of threads left to run |
|
||
number of threads currently running |
|
|
Scheduler(max_threads[, start_fn][, finish_fn]) -> object max_threads is the maximum number of threads to run at a time. start_fn and finish_fn are optional callbacks that take a thread as an argument. They are called before and after each thread. |
Execute the main loop. Return a boolean indicating whether threads are still running.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Feb 7 11:50:30 2008 | http://epydoc.sourceforge.net |