Remove pointers from Genode::Fifo interface
Replace methods of Genode::Fifo returning pointers with methods which call lambdas with references. Ref #3135
This commit is contained in:
committed by
Norman Feske
parent
328c1ad96e
commit
38ab456c78
@@ -78,7 +78,7 @@ struct rumpuser_mtx
|
||||
if (try_enter)
|
||||
return false;
|
||||
|
||||
fifo.enqueue(&applicant);
|
||||
fifo.enqueue(applicant);
|
||||
}
|
||||
applicant.block();
|
||||
}
|
||||
@@ -99,8 +99,8 @@ struct rumpuser_mtx
|
||||
owner = nullptr;
|
||||
}
|
||||
|
||||
if (Applicant *applicant = fifo.dequeue())
|
||||
applicant->wake_up();
|
||||
fifo.dequeue([] (Applicant &applicant) {
|
||||
applicant.wake_up(); });
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user