[Swift-commit] r7483 - branches/release-0.95/src/org/griphyn/vdl/mapping

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Mon Jan 20 10:48:09 CST 2014


Author: davidk
Date: 2014-01-20 10:48:08 -0600 (Mon, 20 Jan 2014)
New Revision: 7483

Modified:
   branches/release-0.95/src/org/griphyn/vdl/mapping/AbstractDataNode.java
   branches/release-0.95/src/org/griphyn/vdl/mapping/ArrayDataNode.java
   branches/release-0.95/src/org/griphyn/vdl/mapping/MappingParamSet.java
   branches/release-0.95/src/org/griphyn/vdl/mapping/RootArrayDataNode.java
Log:
Bug #1171 fix from trunk


Modified: branches/release-0.95/src/org/griphyn/vdl/mapping/AbstractDataNode.java
===================================================================
--- branches/release-0.95/src/org/griphyn/vdl/mapping/AbstractDataNode.java	2014-01-17 06:04:39 UTC (rev 7482)
+++ branches/release-0.95/src/org/griphyn/vdl/mapping/AbstractDataNode.java	2014-01-20 16:48:08 UTC (rev 7483)
@@ -717,6 +717,10 @@
     }
     
     public void addListener(FutureListener l) {
+        addListener(l, true);
+    }
+    
+    public void addListener(FutureListener l, boolean partialUpdates) {
     	boolean closed;
     	WaitingThreadsMonitor.addThread(l, this);
     	synchronized(this) {

Modified: branches/release-0.95/src/org/griphyn/vdl/mapping/ArrayDataNode.java
===================================================================
--- branches/release-0.95/src/org/griphyn/vdl/mapping/ArrayDataNode.java	2014-01-17 06:04:39 UTC (rev 7482)
+++ branches/release-0.95/src/org/griphyn/vdl/mapping/ArrayDataNode.java	2014-01-20 16:48:08 UTC (rev 7483)
@@ -104,12 +104,12 @@
     }
     
     @Override
-    public void addListener(FutureListener l) {
+    public void addListener(FutureListener l, boolean partialUpdates) {
         boolean shouldNotify;
         WaitingThreadsMonitor.addThread(l, this);
         synchronized(this) {
             shouldNotify = addListener0(l);
-            if (keyList != null) {
+            if (keyList != null && partialUpdates) {
                 shouldNotify = true;
             }
         }

Modified: branches/release-0.95/src/org/griphyn/vdl/mapping/MappingParamSet.java
===================================================================
--- branches/release-0.95/src/org/griphyn/vdl/mapping/MappingParamSet.java	2014-01-17 06:04:39 UTC (rev 7482)
+++ branches/release-0.95/src/org/griphyn/vdl/mapping/MappingParamSet.java	2014-01-20 16:48:08 UTC (rev 7483)
@@ -45,7 +45,7 @@
     
     protected boolean checkOpen(Object v) {
         if (v instanceof AbstractDataNode && !((AbstractDataNode) v).isClosed()) {
-            return true;        
+            return true;
         }
         else {
             return false;

Modified: branches/release-0.95/src/org/griphyn/vdl/mapping/RootArrayDataNode.java
===================================================================
--- branches/release-0.95/src/org/griphyn/vdl/mapping/RootArrayDataNode.java	2014-01-17 06:04:39 UTC (rev 7482)
+++ branches/release-0.95/src/org/griphyn/vdl/mapping/RootArrayDataNode.java	2014-01-20 16:48:08 UTC (rev 7483)
@@ -112,7 +112,7 @@
 	    
 		waitingMapperParam = mapper.getFirstOpenParameter();
         if (waitingMapperParam != null) {
-            waitingMapperParam.addListener(this);
+            waitingMapperParam.addListener(this, false);
             if (variableTracer.isEnabled()) {
                 variableTracer.trace(getThread(), getLine(), getName() + " WAIT " 
                     + Tracer.getVarName(waitingMapperParam));




More information about the Swift-commit mailing list