Author: [log in to unmask] Date: Sat Nov 1 19:35:11 2014 New Revision: 1392 Log: Make a few methods thread safe. Modified: java/trunk/monitoring-app/src/main/java/org/hps/monitoring/subsys/SystemStatusImpl.java Modified: java/trunk/monitoring-app/src/main/java/org/hps/monitoring/subsys/SystemStatusImpl.java ============================================================================= --- java/trunk/monitoring-app/src/main/java/org/hps/monitoring/subsys/SystemStatusImpl.java (original) +++ java/trunk/monitoring-app/src/main/java/org/hps/monitoring/subsys/SystemStatusImpl.java Sat Nov 1 19:35:11 2014 @@ -52,7 +52,7 @@ } @Override - public void setStatus(StatusCode code, String message) { + synchronized public void setStatus(StatusCode code, String message) { if (isActive()) { this.code = code; this.message = message; @@ -74,7 +74,7 @@ /** * Notify listeners of changes to the system status. */ - void notifyListeners() { + synchronized void notifyListeners() { for (SystemStatusListener listener : listeners) { listener.statusChanged(this); }