Package wafadmin :: Module Runner :: Class Parallel
[hide private]
[frames] | no frames]

Class Parallel

source code

object --+
         |
        Parallel

The following is a small scheduler for making as many tasks available to the consumer threads It uses the serial shuffling system

Instance Methods [hide private]
 
__init__(self, bld, j=2)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
get_next(self)
override this method to schedule the tasks in a particular order
source code
 
postpone(self, tsk)
override this method to schedule the tasks in a particular order
source code
 
refill_task_list(self)
called to set the next group of tasks
source code
 
get_out(self)
the tasks that are put to execute are all collected using get_out
source code
 
error_handler(self, tsk)
by default, errors make the build stop (not thread safe so be careful)
source code
 
start(self)
execute the tasks
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, bld, j=2)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)