| 376 | } |
| 377 | |
| 378 | cm::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 | |
| 396 | void cmProcess::ChangeTimeout(cmDuration t) |
| 397 | { |
no outgoing calls