Пример #1
0
void PollingStageScheduler::StagePoller::schedule(Stage& stage) {
    stage.inc_ref();
    while (!new_stage.enqueue(stage)) {
        ;
    }
}
Пример #2
0
PollingStageScheduler::StagePoller::StagePoller(Stage& first_stage) {
    stages.push_back(&first_stage.inc_ref());
}