private void handleDataReporters() { if (dataReportersToExecute.isEmpty() && diagnosticDataReporterRunning == null) return; if (diagnosticDataReporterRunning == null || diagnosticDataReporterRunning.isDoneExportingData()) { diagnosticDataReporterRunning = null; if (dataReportersToExecute.isEmpty()) return; diagnosticDataReporterRunning = dataReportersToExecute.poll(); Thread thread = new Thread(diagnosticDataReporterRunning, "IHMC-AutomatedDiagnosticReporter"); thread.setPriority(Thread.MIN_PRIORITY); thread.start(); } }
private void handleDataReporters() { if (dataReportersToExecute.isEmpty() && diagnosticDataReporterRunning == null) return; if (diagnosticDataReporterRunning == null || diagnosticDataReporterRunning.isDoneExportingData()) { diagnosticDataReporterRunning = null; if (dataReportersToExecute.isEmpty()) return; diagnosticDataReporterRunning = dataReportersToExecute.poll(); Thread thread = new Thread(diagnosticDataReporterRunning); thread.setPriority(Thread.MIN_PRIORITY); thread.start(); } }