| 459 | } |
| 460 | |
| 461 | void 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 | |
| 479 | void cmWorkerPoolWorker::UVProcessFinished() |
| 480 | { |
nothing calls this directly
no test coverage detected