| 1497 | } |
| 1498 | |
| 1499 | void EndFromSingleThread(Status st = Status::OK()) { |
| 1500 | process_task_.MarkFinished(st); |
| 1501 | if (st.ok()) { |
| 1502 | st = output_->InputFinished(this, batches_produced_); |
| 1503 | } |
| 1504 | |
| 1505 | for (size_t i = 0; i < state_.size(); ++i) { |
| 1506 | const auto& s = state_[i]; |
| 1507 | s->ForceShutdown(); |
| 1508 | st &= inputs_[i]->StopProducing(); |
| 1509 | } |
| 1510 | } |
| 1511 | |
| 1512 | #endif |
| 1513 |
nothing calls this directly
no test coverage detected