attach tcharm thread to bluegene processor thread in Tcharm::pup when doing unpacking.
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 2 Jan 2004 21:15:26 +0000 (21:15 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 2 Jan 2004 21:15:26 +0000 (21:15 +0000)
src/libs/ck-libs/tcharm/tcharm.C

index 4823cea5ae0704dcc9acf02b6608ba3c9ff57b24..2d081e7c1f9cb5a9d018c12c935c73331b4f9927 100644 (file)
@@ -230,8 +230,12 @@ void TCharm::pupThread(PUP::er &pc) {
     pup_er p=(pup_er)&pc;
     checkPupMismatch(pc,5138,"before TCHARM thread");
     tid = CthPup(p, tid);
-    if (pc.isUnpacking())
+    if (pc.isUnpacking()) {
       CtvAccessOther(tid,_curTCharm)=this;
+#if CMK_BLUEGENE_CHARM
+      BgAttach(tid);
+#endif
+    }
     CmiIsomallocBlockListPup(p,&heapBlocks);
     threadGlobals=CtgPup(p,threadGlobals);
     checkPupMismatch(pc,5139,"after TCHARM thread");