Sim: Enforce boot order is correct, sim starts first

This commit is contained in:
Lorenz Meier
2015-07-04 08:09:12 -07:00
parent 32bf4dc773
commit 5a1af860ab
3 changed files with 16 additions and 1 deletions
+9
View File
@@ -164,6 +164,15 @@ int simulator_main(int argc, char *argv[])
1500,
Simulator::start,
argv);
// now wait for the command to complete
while(true) {
if (Simulator::getInstance() && Simulator::getInstance()->isInitialized()) {
break;
} else {
usleep(100000);
}
}
}
else
{