}
return values;
}
-
+ private volatile boolean busy=false;
/**
* Send a command to Chimera.
*
{
return null;
}
-
+ while (busy)
+ {
+ try {
+ Thread.sleep(25);
+ } catch (InterruptedException q) {};
+ }
+ busy=true;
chimeraListenerThreads.clearResponse(command);
String text = command.concat("\n");
// System.out.println("send command to chimera: " + text);
logger.warn("Unable to execute command: " + text);
logger.warn("Exiting...");
clearOnChimeraExit();
+ busy=false;
return null;
}
if (!reply)
{
+ busy=false;
return null;
}
- return chimeraListenerThreads.getResponse(command);
+ List<String> rsp = chimeraListenerThreads.getResponse(command);
+ busy=false;
+ return rsp;
}
public StructureManager getStructureManager()