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

Class Jobs


An instance of this class initializes N jobs, and provides methods for starting, stopping, and waiting on all N jobs.


Method Summary
  __init__(self, num, taskmaster)
create 'num' jobs using the given taskmaster.
  cleanup(self)
  run(self)
run the job

Method Details

__init__(self, num, taskmaster)
(Constructor)

create 'num' jobs using the given taskmaster.

If 'num' is 1 or less, then a serial job will be used, otherwise a parallel job with 'num' worker threads will be used.

The 'num_jobs' attribute will be set to the actual number of jobs allocated. If more than one job is requested but the Parallel class can't do it, it gets reset to 1. Wrapping interfaces that care should check the value of 'num_jobs' after initialization.

run(self)

run the job


Generated by Epydoc 2.1 on Wed Dec 12 09:39:31 2007 http://epydoc.sf.net