MCPcopy Index your code
hub / github.com/nodejs/node / LoadTargetBuildFileCallback

Method LoadTargetBuildFileCallback

tools/gyp/pylib/gyp/input.py:586–603  ·  view source on GitHub ↗

Handle the results of running LoadTargetBuildFile in another process.

(self, result)

Source from the content-addressed store, hash-verified

584 self.error = False
585
586 def LoadTargetBuildFileCallback(self, result):
587 """Handle the results of running LoadTargetBuildFile in another process."""
588 self.condition.acquire()
589 if not result:
590 self.error = True
591 self.condition.notify()
592 self.condition.release()
593 return
594 (build_file_path0, build_file_data0, dependencies0) = result
595 self.data[build_file_path0] = build_file_data0
596 self.data["target_build_files"].add(build_file_path0)
597 for new_dependency in dependencies0:
598 if new_dependency not in self.scheduled:
599 self.scheduled.add(new_dependency)
600 self.dependencies.append(new_dependency)
601 self.pending -= 1
602 self.condition.notify()
603 self.condition.release()
604
605
606def LoadTargetBuildFilesParallel(

Callers

nothing calls this directly

Calls 4

acquireMethod · 0.80
releaseMethod · 0.80
addMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected