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

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Jan 9 07:31:48 CST 2009


Author: benc
Date: 2009-01-09 07:31:47 -0600 (Fri, 09 Jan 2009)
New Revision: 2414

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/VDLFunction.java
Log:
add assertion that addFutureListener will only be called with a lock on the root of the handle to listen to

Modified: trunk/src/org/griphyn/vdl/karajan/lib/VDLFunction.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/VDLFunction.java	2009-01-09 12:37:47 UTC (rev 2413)
+++ trunk/src/org/griphyn/vdl/karajan/lib/VDLFunction.java	2009-01-09 13:31:47 UTC (rev 2414)
@@ -492,11 +492,13 @@
 
 	protected static Future addFutureListener(VariableStack stack, DSHandle handle)
 			throws ExecutionException {
+		assert Thread.holdsLock(handle.getRoot());
 		return getFutureWrapperMap(stack).addNodeListener(handle);
 	}
 
 	protected static FutureIterator addFutureListListener(VariableStack stack, DSHandle handle,
 			Map value) throws ExecutionException {
+		assert Thread.holdsLock(handle.getRoot());
 		return getFutureWrapperMap(stack).addFutureListListener(handle, value).futureIterator(stack);
 	}
 




More information about the Swift-commit mailing list