| 477 | } |
| 478 | |
| 479 | void cmWorkerPoolWorker::UVProcessFinished() |
| 480 | { |
| 481 | std::lock_guard<std::mutex> lock(this->Proc_.Mutex); |
| 482 | if (this->Proc_.ROP && |
| 483 | (this->Proc_.ROP->IsFinished() || !this->Proc_.ROP->IsStarted())) { |
| 484 | this->Proc_.ROP.reset(); |
| 485 | } |
| 486 | // Notify idling thread |
| 487 | this->Proc_.Condition.notify_one(); |
| 488 | } |
| 489 | |
| 490 | /** |
| 491 | * @brief Private worker pool internals |
no test coverage detected