| 543 | StepNum stepNum; |
| 544 | |
| 545 | void push(RawTransaction *tx) { |
| 546 | using namespace std::chrono_literals; |
| 547 | while (!nextQueue->push(tx)) { |
| 548 | if (nextDone && *nextDone) { |
| 549 | // Error: next ProcessStep finished before all items were queued |
| 550 | throw NextQueueFinishedEarlyException(); |
| 551 | } |
| 552 | nextWaitCount++; |
| 553 | std::this_thread::sleep_for(5ms); |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | void linkBack(QueueStage &prevStage) { |
| 558 | // Link the queue- and done-pointers for the previous queue to this object's variables |
no test coverage detected