Home | Trees | Indices | Help |
|
---|
|
object --+ | Parallel
This class is used to execute tasks in parallel, and is somewhat less efficient than Serial, but is appropriate for parallel builds.
This class is thread safe.
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Create a new parallel job given a taskmaster. The taskmaster's next_task() method should return the next task that needs to be executed, or None if there are no more tasks. The taskmaster's executed() method will be called for each task when it is successfully executed or failed() will be called if the task failed to execute (i.e. execute() raised an exception). Note: calls to taskmaster are serialized, but calls to execute() on distinct tasks are not serialized, because that is the whole point of parallel jobs: they can execute multiple tasks simultaneously.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Sep 27 12:53:22 2014 | http://epydoc.sourceforge.net |