Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M Finkbeiner2013-06-05 23:57:39 +0000
committerAndrew M Finkbeiner2013-06-06 22:27:20 +0000
commit0642ad413c6a8b647327173c595be2340dec98c9 (patch)
tree7e7c58ceda90c152d8a63e2cbbd55699729733e2
parent0442da011baa5600576e37042c5ca223c7d41b74 (diff)
downloadorg.eclipse.osee-0642ad413c6a8b647327173c595be2340dec98c9.tar.gz
org.eclipse.osee-0642ad413c6a8b647327173c595be2340dec98c9.tar.xz
org.eclipse.osee-0642ad413c6a8b647327173c595be2340dec98c9.zip
bug: Timer synchronization issue
-rw-r--r--plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TimerControl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TimerControl.java b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TimerControl.java
index 79a1d9fb346..da4d5cb76c4 100644
--- a/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TimerControl.java
+++ b/plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TimerControl.java
@@ -14,6 +14,7 @@ import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
+
import org.eclipse.osee.ote.core.environment.interfaces.BasicTimeout;
import org.eclipse.osee.ote.core.environment.interfaces.ITimeout;
import org.eclipse.osee.ote.core.environment.interfaces.ITimerControl;
@@ -46,8 +47,8 @@ public abstract class TimerControl implements ITimerControl {
@Override
public void envWait(ITimeout obj, int milliseconds) throws InterruptedException {
- setTimerFor(obj, milliseconds);
synchronized (obj) {
+ setTimerFor(obj, milliseconds);
obj.wait();
}
}

Back to the top