remove unnecessary include <string> .
[charm.git] / src / ck-com / PrioStreaming.C
index bd0f0a715961891678afc1de3911ce3d282e181d..b6411ad86e0ede7f6549b53573e9c1bd3b1a0114 100644 (file)
@@ -1,9 +1,15 @@
+/**
+   @addtogroup ComlibCharmStrategy
+   @{
+   @file 
+*/
+
 #include "PrioStreaming.h"
-#include "MsgPacker.h"
+//#include "MsgPacker.h"
 
 PrioStreaming::PrioStreaming(int periodMs,int bufferMax_, int prio, 
                             int msgSizeMax_, int bufSizeMax_)
-    : StreamingStrategy(periodMs, bufferMax_, msgSizeMax_, bufSizeMax_), basePriority(prio)
+    : StreamingStrategy(periodMs, bufferMax_, msgSizeMax_, bufSizeMax_), CharmStrategy(), basePriority(prio)
 {
 }
 
@@ -36,8 +42,11 @@ void PrioStreaming::insertMessage(CharmMessageHolder *cmsg) {
 void PrioStreaming::pup(PUP::er &p){
 
     StreamingStrategy::pup(p);
+    CharmStrategy::pup(p);
     p | basePriority;
 
-    if(p.isUnpacking())
+    if(p.isPacking() || p.isUnpacking())
         minPrioVec.resize(CkNumPes());
 }
+
+/*@}*/