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

def Bio::PopGen::Async::Local::Local::start_work (   self )
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.

Definition at line 46 of file Local.py.

                        :
        '''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.
        '''
        self.access_ds.acquire()
        while (len(self.waiting) > 0):
            id, hook, parameters, input_files = self.waiting[0]
            del self.waiting[0]
            self.running[id] = True
            self.access_ds.release()
            ret_code, output_files = hook.run_job(parameters, input_files)
            self.access_ds.acquire()
            del self.running[id]
            self.done[id] = ret_code, output_files
        self.cores_used -= 1
        self.access_ds.release()
  

Generated by  Doxygen 1.6.0   Back to index