[Yellowstone] Use semaphores for handling yellowstone registration.

This commit is contained in:
Drew Galbraith 2023-11-22 13:30:59 -08:00
parent 41bf78cf98
commit 19e394ae7b
3 changed files with 17 additions and 31 deletions

View file

@ -27,12 +27,12 @@ uint64_t main(uint64_t port_cap) {
ASSIGN_OR_RETURN(YellowstoneClient client1, server->CreateClient());
check(SpawnProcess(gBootDenaliVmmoCap, client1.Capability()));
check(server->WaitDenaliRegistered());
server->WaitDenaliRegistered();
ASSIGN_OR_RETURN(YellowstoneClient client2, server->CreateClient());
check(SpawnProcess(gBootVictoriaFallsVmmoCap, client2.Capability()));
check(server->WaitVictoriaFallsRegistered());
server->WaitVictoriaFallsRegistered();
dbgln("VFS Available.");