Adding communication library in src/ck-com and src/conv-com
[charm.git] / src / ck-com / DummyStrategy.C
1 #include "DummyStrategy.h"
2
3 DummyStrategy::DummyStrategy() : CharmStrategy(){
4 }
5
6 void DummyStrategy::insertMessage(CharmMessageHolder *cmsg){
7     ComlibPrintf("Sending Directly\n");
8     char *msg = cmsg->getCharmMessage();
9     CmiSyncSendAndFree(cmsg->dest_proc, UsrToEnv(msg)->getTotalsize(), 
10                        (char *)UsrToEnv(msg));
11     delete cmsg;
12 }
13
14 void DummyStrategy::doneInserting(){
15 }
16
17 void DummyStrategy::pup(PUP::er &p){}
18
19 //PUPable_def(DummyStrategy);