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:
Emery Hemingway
2019-01-29 19:29:03 +01:00
committed by Norman Feske
parent 328c1ad96e
commit 38ab456c78
26 changed files with 367 additions and 380 deletions

View File

@@ -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(); });
}
};