| 250 | } |
| 251 | |
| 252 | void ResumeProducing(ExecNode* output, int32_t counter) override { |
| 253 | Future<> to_finish; |
| 254 | { |
| 255 | std::lock_guard<std::mutex> lg(mutex_); |
| 256 | if (counter <= backpressure_counter_) { |
| 257 | return; |
| 258 | } |
| 259 | backpressure_counter_ = counter; |
| 260 | if (backpressure_future_.is_finished()) { |
| 261 | return; |
| 262 | } |
| 263 | to_finish = backpressure_future_; |
| 264 | backpressure_future_ = Future<>::MakeFinished(); |
| 265 | } |
| 266 | to_finish.MarkFinished(); |
| 267 | } |
| 268 | |
| 269 | Status StopProducing() override { |
| 270 | // GH-35837: ensure node is not paused |
nothing calls this directly
no test coverage detected