MCPcopy Create free account
hub / github.com/Kitware/VTK / GetProgramPath

Method GetProgramPath

Parallel/Core/vtkPSystemTools.cxx:157–168  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

155
156//------------------------------------------------------------------------------
157std::string vtkPSystemTools::GetProgramPath(const std::string& path)
158{
159 vtkMultiProcessController* controller = vtkMultiProcessController::GetGlobalController();
160 std::string programPath;
161 if (controller->GetLocalProcessId() == 0)
162 {
163 programPath = vtksys::SystemTools::GetProgramPath(path);
164 }
165 vtkPSystemTools::BroadcastString(programPath, 0);
166
167 return programPath;
168}
169
170//------------------------------------------------------------------------------
171void vtkPSystemTools::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 2

BroadcastStringFunction · 0.50
GetLocalProcessIdMethod · 0.45

Tested by

no test coverage detected