[Yellowstone] Start teton after voyageurs is available.

This commit is contained in:
Drew Galbraith 2024-02-24 15:12:21 -08:00
parent 02d4f8c80e
commit 8fb55f56b6
3 changed files with 10 additions and 0 deletions

View file

@ -113,6 +113,8 @@ glcr::Status YellowstoneServer::HandleRegisterEndpoint(
// transmit to other processes.
mmth::SetVfsCap(req.endpoint_capability());
has_victoriafalls_semaphore_.Signal();
} else if (req.endpoint_name() == "voyageurs") {
has_voyageurs_.Signal();
} else {
dbgln("[WARN] Got endpoint cap type: {}", req.endpoint_name().cstr());
}
@ -138,4 +140,6 @@ void YellowstoneServer::WaitVictoriaFallsRegistered() {
has_victoriafalls_semaphore_.Wait();
}
void YellowstoneServer::WaitVoyageursRegistered() { has_voyageurs_.Wait(); }
} // namespace yellowstone