Making the learner a dynamic switch rather than a compile time switch.
[charm.git] / src / ck-com / EachToManyMulticastStrategy.h
index 13a63b3772382c0513e41b578ce3dfc2d6fbb716..924a828712efa5e647f482bf312de0958d5789c2 100644 (file)
@@ -17,6 +17,7 @@ class EachToManyMulticastStrategy: public CharmStrategy {
     virtual void commonInit();
 
     RouterStrategy *rstrat;
+    int useLearner;
 
  public:
     //Group constructor
@@ -45,7 +46,8 @@ class EachToManyMulticastStrategy: public CharmStrategy {
     virtual void localMulticast(void *msg);
     
     PUPable_decl(EachToManyMulticastStrategy);
-
+    
+    inline void enableLearning() {useLearner = 1;}
 };
 #endif