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

Method UVProcessStart

Source/cmWorkerPool.cxx:461–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461void cmWorkerPoolWorker::UVProcessStart(uv_async_t* handle)
462{
463 auto* worker = reinterpret_cast<cmWorkerPoolWorker*>(handle->data);
464 bool startFailed = false;
465 {
466 auto& Proc = worker->Proc_;
467 std::lock_guard<std::mutex> lock(Proc.Mutex);
468 if (Proc.ROP && !Proc.ROP->IsStarted()) {
469 startFailed = !Proc.ROP->start(
470 handle->loop, [worker] { worker->UVProcessFinished(); });
471 }
472 }
473 // Clean up if starting of the process failed
474 if (startFailed) {
475 worker->UVProcessFinished();
476 }
477}
478
479void cmWorkerPoolWorker::UVProcessFinished()
480{

Callers

nothing calls this directly

Calls 3

IsStartedMethod · 0.80
UVProcessFinishedMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected