void PollingStageScheduler::StagePoller::schedule(Stage& stage) { stage.inc_ref(); while (!new_stage.enqueue(stage)) { ; } }
PollingStageScheduler::StagePoller::StagePoller(Stage& first_stage) { stages.push_back(&first_stage.inc_ref()); }