added a callback functionality at the end of an iteration
[charm.git] / src / ck-com / EachToManyMulticastStrategy.C
index edff886b77d2dc8b5ec36eb8212733a576eff9da..61b6aa260b87006b23e3ecbbf2bea09a69cef74b 100644 (file)
@@ -45,8 +45,11 @@ void *itrDoneHandler(void *msg){
         ComlibPrintf("[%d] Calling Dummy Done Inserting, %d, %d\n", CkMyPe(), instid, nexpected);
         nm_mgr = (EachToManyMulticastStrategy *)sentry->strategy;    
         nm_mgr->doneInserting();
-    }
+       
+       if (!nm_mgr->getOnFinish().isInvalid()) nm_mgr->getOnFinish().send(0);
     
+    }
+
     return NULL;
 }