Sim: Enforce boot order is correct, sim starts first

This commit is contained in:
Lorenz Meier committed 2015-07-04 08:09:12 -07:00
1 parent 32bf4dc773
commit 5a1af860ab
3 files changed
+16 -1

No files matched your search

+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
{