diff options
author | Andrew M Finkbeiner | 2013-06-05 23:57:39 +0000 |
---|---|---|
committer | Andrew M Finkbeiner | 2013-06-06 22:27:20 +0000 |
commit | 0642ad413c6a8b647327173c595be2340dec98c9 (patch) | |
tree | 7e7c58ceda90c152d8a63e2cbbd55699729733e2 | |
parent | 0442da011baa5600576e37042c5ca223c7d41b74 (diff) | |
download | org.eclipse.osee-0642ad413c6a8b647327173c595be2340dec98c9.tar.gz org.eclipse.osee-0642ad413c6a8b647327173c595be2340dec98c9.tar.xz org.eclipse.osee-0642ad413c6a8b647327173c595be2340dec98c9.zip |
bug: Timer synchronization issue
Change-Id: Iec668d55f1988ebfac626c6de9c63224a79ff543
-rw-r--r-- | plugins/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/environment/TimerControl.java | 3 |
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(); } } |