Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::PopGen::Async::Local::Local::_run_program (   self,
  id,
  hook,
  parameters,
  input_files 
) [private]
Run program.

   For parameters, please check Async.run_program.

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

Reimplemented from Bio::PopGen::Async::Async.

Definition at line 31 of file Local.py.

                                                             :
        '''Run program.

           For parameters, please check Async.run_program.

           Either runs a program if a core is available or
           schedules it.
        '''
        self.access_ds.acquire()
        self.waiting.append((id, hook, parameters, input_files))
        if self.cores_used < self.num_cores:
            self.cores_used += 1
            thread.start_new_thread(self.start_work, ())
        self.access_ds.release()


Generated by  Doxygen 1.6.0   Back to index