'Handle the results of running LoadTargetBuildFile in another process.'

def LoadTargetBuildFileCallback(self, result):

    self.condition.acquire()
    if (not result):
        self.error = True
        self.condition.notify()
        self.condition.release()
        return
    (build_file_path0, build_file_data0, dependencies0) = result
    self.data[build_file_path0] = build_file_data0
    self.data['target_build_files'].add(build_file_path0)
    for new_dependency in dependencies0:
        if (new_dependency not in self.scheduled):
            self.scheduled.add(new_dependency)
            self.dependencies.append(new_dependency)
    self.pending -= 1
    self.condition.notify()
    self.condition.release()
