Fixing the way to handle immigrant recovering objects.
[charm.git] / src / ck-core / ckreduction.h
index 9cede818803d3a12ab4d111a56cc4fa554f33323..53c1d122e8cb02cf2336efa022e5109985289cff 100644 (file)
@@ -544,8 +544,20 @@ public:
        */
        int getGCount(){return gcount;};
         static void sanitycheck();
+#if defined(_FAULT_CAUSAL_)
+       void incNumImmigrantRecObjs(){
+               numImmigrantRecObjs++;
+       }
+       void decNumImmigrantRecObjs(){
+               numImmigrantRecObjs--;
+       }
+#endif
+
 private:
 
+#if defined(_FAULT_CAUSAL_)
+       int numImmigrantRecObjs;
+#endif
 
 //Data members
        //Stored callback function (may be NULL if none has been set)