|
|
@ -474,29 +474,23 @@ int main(int argc, char *argv[])
|
|
|
|
pthread_t input;
|
|
|
|
pthread_t input;
|
|
|
|
pthread_create(&input, NULL, &input_loop, &args);
|
|
|
|
pthread_create(&input, NULL, &input_loop, &args);
|
|
|
|
|
|
|
|
|
|
|
|
bool plot_started = false;
|
|
|
|
printf("Attaching UE...\n");
|
|
|
|
bool signals_pregenerated = false;
|
|
|
|
while (!ue->attach() && running) {
|
|
|
|
|
|
|
|
sleep(1);
|
|
|
|
while (running) {
|
|
|
|
printf("Could not attach. Trying again...\n");
|
|
|
|
if (ue->is_attached()) {
|
|
|
|
}
|
|
|
|
if (!signals_pregenerated && args.expert.pregenerate_signals) {
|
|
|
|
if (running) {
|
|
|
|
|
|
|
|
if (args.expert.pregenerate_signals) {
|
|
|
|
ue->pregenerate_signals(true);
|
|
|
|
ue->pregenerate_signals(true);
|
|
|
|
signals_pregenerated = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!plot_started && args.gui.enable) {
|
|
|
|
if (args.gui.enable) {
|
|
|
|
ue->start_plot();
|
|
|
|
ue->start_plot();
|
|
|
|
plot_started = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
while (!ue->attach() && running) {
|
|
|
|
|
|
|
|
sleep(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (running) {
|
|
|
|
while (running) {
|
|
|
|
ue->print_pool();
|
|
|
|
ue->print_pool();
|
|
|
|
sleep(10);
|
|
|
|
sleep(10);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pthread_cancel(input);
|
|
|
|
pthread_cancel(input);
|
|
|
|
metricshub.stop();
|
|
|
|
metricshub.stop();
|
|
|
|
ue->stop();
|
|
|
|
ue->stop();
|
|
|
|