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

Method Wait

Source/cmUVProcessChain.cxx:466–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466bool cmUVProcessChain::Wait(uint64_t milliseconds)
467{
468 bool timeout = false;
469 cm::uv_timer_ptr timer;
470
471 if (milliseconds > 0) {
472 timer.init(*this->Data->Loop, &timeout);
473 timer.start(
474 [](uv_timer_t* handle) {
475 auto* timeoutPtr = static_cast<bool*>(handle->data);
476 *timeoutPtr = true;
477 },
478 milliseconds, 0, cm::uv_update_time::yes);
479 }
480
481 while (!timeout &&
482 this->Data->ProcessesCompleted < this->Data->Processes.size()) {
483 uv_run(this->Data->Loop, UV_RUN_ONCE);
484 }
485
486 return !timeout;
487}
488
489std::vector<cmUVProcessChain::Status const*> cmUVProcessChain::GetStatus()
490 const

Callers 15

checkExecutionFunction · 0.45
testUVProcessChainWait0Function · 0.45
GetFileInfoMethod · 0.45
GetLDConfigPathsMethod · 0.45
GetFileInfoMethod · 0.45
RunMakeCommandMethod · 0.45
GetFileInfoMethod · 0.45

Calls 4

uv_runFunction · 0.50
initMethod · 0.45
startMethod · 0.45
sizeMethod · 0.45

Tested by 11

checkExecutionFunction · 0.36
testUVProcessChainWait0Function · 0.36
RunMakeCommandMethod · 0.36
ExecuteScriptMethod · 0.36
RunBullseyeCommandMethod · 0.36
RunTestMethod · 0.36