Package SCons :: Module Job :: Class Serial
[hide private]
[frames] | no frames]

Class Serial

source code

object --+
         |
        Serial

This class is used to execute tasks in series, and is more efficient
than Parallel, but is only appropriate for non-parallel builds. Only
one instance of this class should be in existence at a time.

This class is not thread safe.



Instance Methods [hide private]
 
__init__(self, taskmaster)
Create a new serial job given a taskmaster.
source code
 
start(self)
Start the job.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, taskmaster)
(Constructor)

source code 
Create a new serial 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 it failed to
execute (e.g. execute() raised an exception).

Overrides: object.__init__

start(self)

source code 
Start the job. This will begin pulling tasks from the taskmaster
and executing them, and return when there are no more tasks. If a task
fails to execute (i.e. execute() raises an exception), then the job will
stop.