Package Bio :: Package PopGen :: Package Async :: Module Local :: Class Local
[hide private]
[frames] | no frames]

Class Local

source code

Async --+
        |
       Local

Execution on Local machine.

Instance Methods [hide private]
 
__init__(self, num_cores=1)
Constructor.
source code
 
_run_program(self, id, hook, parameters, input_files)
Run program.
source code
 
start_work(self)
Starts work.
source code

Inherited from Async: get_result, run_program

Method Details [hide private]

__init__(self, num_cores=1)
(Constructor)

source code 
Constructor.

parameters:
num_cores - Number of cores (for multiprocessor machines,
    multiply accordingly)

Overrides: Async.__init__

_run_program(self, id, hook, parameters, input_files)

source code 

Run program.

For parameters, please check Async.run_program.

Either runs a program if a core is available or schedules it.

start_work(self)

source code 

Starts work.

Thread initial point. While there are tasks to be done, runs them. The thread dies as soon as there is nothing waiting to be executed.