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

Method UVTryFinish

Source/cmWorkerPool.cxx:369–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void cmUVReadOnlyProcess::UVTryFinish()
370{
371 // There still might be data in the pipes after the process has finished.
372 // Therefore check if the process is finished AND all pipes are closed
373 // before signaling the worker thread to continue.
374 if ((this->UVProcess_.get()) || (this->UVPipeOut_.uv_pipe()) ||
375 (this->UVPipeErr_.uv_pipe())) {
376 return;
377 }
378 this->IsFinished_ = true;
379 this->FinishedCallback_();
380}
381
382/**
383 * @brief Worker pool worker thread

Callers 3

UVPipeOutEndMethod · 0.95
UVPipeErrEndMethod · 0.95
UVExitMethod · 0.80

Calls 2

uv_pipeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected