MCPcopy Create free account
hub / github.com/Kitware/CMake / GetComputedTimeout

Method GetComputedTimeout

Source/CTest/cmProcess.cxx:378–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378cm::optional<cmProcess::ComputedTimeout> cmProcess::GetComputedTimeout() const
379{
380 if (this->StopTimeout && this->Timeout) {
381 if (*this->StopTimeout < *this->Timeout) {
382 return ComputedTimeout{ TimeoutReason::StopTime, *this->StopTimeout };
383 }
384 return ComputedTimeout{ TimeoutReason::Normal, *this->Timeout };
385 }
386 if (this->StopTimeout) {
387 return ComputedTimeout{ TimeoutReason::StopTime, *this->StopTimeout };
388 }
389 if (this->Timeout) {
390 return ComputedTimeout{ TimeoutReason::Normal, *this->Timeout };
391 }
392
393 return cm::nullopt;
394}
395
396void cmProcess::ChangeTimeout(cmDuration t)
397{

Callers 2

StartTimerMethod · 0.95
ForkProcessMethod · 0.80

Calls

no outgoing calls

Tested by 1

ForkProcessMethod · 0.64