| 367 | } |
| 368 | |
| 369 | void 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 |
no test coverage detected