[Swift-commit] r5904 - trunk/src/org/griphyn/vdl/karajan

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Tue Aug 14 20:10:31 CDT 2012


Author: hategan
Date: 2012-08-14 20:10:31 -0500 (Tue, 14 Aug 2012)
New Revision: 5904

Modified:
   trunk/src/org/griphyn/vdl/karajan/WaitingThreadsMonitor.java
Log:
fixed sync issue which, besides causing the tracking of outputs to be inconsistent, may lead to deadlocks

Modified: trunk/src/org/griphyn/vdl/karajan/WaitingThreadsMonitor.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/WaitingThreadsMonitor.java	2012-08-13 20:25:26 UTC (rev 5903)
+++ trunk/src/org/griphyn/vdl/karajan/WaitingThreadsMonitor.java	2012-08-15 01:10:31 UTC (rev 5904)
@@ -52,7 +52,7 @@
 	}
 
     public static void addOutput(VariableStack stack, List<DSHandle> outputs) {
-        synchronized(outputs) {
+        synchronized(WaitingThreadsMonitor.outputs) {
             WaitingThreadsMonitor.outputs.put(stack, outputs);
         }
     }




More information about the Swift-commit mailing list