def _build_all(self, builds): threads = [] for identifier in builds: build = builds[identifier] task = CompileTask(self, identifier, build) if self.threaded: threads.append(Thread(target=task.run)) else: task.run() [t.start() for t in threads] [t.join() for t in threads]
def _build_from_queue(self, identifier): build = self.build_queue[identifier] task = CompileTask(self, identifier, build) task.run()