| 237 | const Ordering& ordering() const override { return ordering_; } |
| 238 | |
| 239 | void PauseProducing(ExecNode* output, int32_t counter) override { |
| 240 | std::lock_guard<std::mutex> lg(mutex_); |
| 241 | if (counter <= backpressure_counter_) { |
| 242 | return; |
| 243 | } |
| 244 | backpressure_counter_ = counter; |
| 245 | if (!backpressure_future_.is_finished()) { |
| 246 | // Could happen if we get something like Pause(1) Pause(3) Resume(2) |
| 247 | return; |
| 248 | } |
| 249 | backpressure_future_ = Future<>::Make(); |
| 250 | } |
| 251 | |
| 252 | void ResumeProducing(ExecNode* output, int32_t counter) override { |
| 253 | Future<> to_finish; |
nothing calls this directly
no test coverage detected