#include <charm++.h>
Public Member Functions | |
Chare (CkMigrateMessage *m) | |
Chare () | |
virtual | ~Chare () |
virtual void | pup (PUP::er &p) |
Pack/UnPack - tell the runtime how to serialize this class's data for migration, checkpoint, etc. | |
virtual void | virtual_pup (PUP::er &p) |
Routine that runtime the runtime actually calls, to enable more intelligence in generated code that overrides this. | |
void | parent_pup (PUP::er &p) |
const CkChareID & | ckGetChareID (void) const |
void | CkGetChareID (CkChareID *dest) const |
void | CkEnableObjQ () |
CkObjectMsgQ & | CkGetObjQueue () |
virtual CHARM_INPLACE_NEW int | ckGetChareType () const |
Return the type of this chare, as present in _chareTable. | |
virtual char * | ckDebugChareName (void) |
Return a strdup'd array containing this object's string name. | |
virtual int | ckDebugChareID (char *str, int limit) |
Place into str a copy of the id of this object up to limit bytes, return the number of bytes used for the id. | |
virtual void | ckDebugPup (PUP::er &p) |
virtual void | CkAddThreadListeners (CthThread tid, void *msg) |
Called when a [threaded] charm entry method is created:. | |
void | sanitycheck () |
Data Fields | |
int | magic |
int | chareIdx |
ChareMlogData * | mlogData |
Protected Attributes | |
CkChareID | thishandle |
CkObjectMsgQ | objQ |
Definition at line 226 of file charm++.h.
Chare::Chare | ( | CkMigrateMessage * | m | ) |
Definition at line 84 of file ck.C.
References _defaultObjectQ, CkEnableObjQ(), Converse::CkMyPe(), magic, mlogData, CkChareID::objPtr, CkChareID::onPE, and thishandle.
Chare::Chare | ( | void | ) |
Definition at line 61 of file ck.C.
References _defaultObjectQ, _ObjectID::chare, chareIdx, CkEnableObjQ(), Converse::CkMyPe(), CkObjID::data, _ObjectID::id, magic, mlogData, ChareMlogData::objID, CkChareID::objPtr, CkChareID::onPE, thishandle, CkObjID::type, and TypeChare.
Chare::~Chare | ( | ) | [virtual] |
Definition at line 107 of file ck.C.
References _allocMsg(), _charmHandlerIdx, chareIdx, Converse::CkMyPe(), Converse::CmiSyncSendAndFree(), DeleteVidMsg, envelope::getTotalsize(), envelope::setSrcPe(), envelope::setVidPtr(), and UsrToEnv().
void Chare::pup | ( | PUP::er & | p | ) | [virtual] |
Pack/UnPack - tell the runtime how to serialize this class's data for migration, checkpoint, etc.
Reimplemented in IrrGroup, ArrayElement, ArrayElemExt, CkArray, RRMap, DefaultArrayMap, FastArrayMap, HilbertArrayMap, ReadFileMap, PropMap, CkArrayMap, CkLocMgr, CkMigratable, CkMulticastMgr, CkGroupInitCallback, CkNodeReductionMgr, NodeGroup, CkReductionMgr, Group, LBDatabase, Cell, Cell2D, Cell1D, Cell3D, ArmciVirtualProcessor, threadCollide, PVT, GVT, TimePool, MemoryPool, pose, and TCharmClient1D.
Definition at line 134 of file ck.C.
References chareIdx, PUP::er::isUnpacking(), magic, mlogData, CkChareID::objPtr, CkChareID::onPE, p, ChareMlogData::pup(), ChareMlogData::teamRecoveryFlag, and thishandle.
Referenced by ckDebugPup(), CkMigratable::pup(), IrrGroup::pup(), and virtual_pup().
virtual void Chare::virtual_pup | ( | PUP::er & | p | ) | [inline, virtual] |
Routine that runtime the runtime actually calls, to enable more intelligence in generated code that overrides this.
The actual pup() method must remain virtual, so that this continues to work for older code.
Definition at line 253 of file charm++.h.
References pup().
Referenced by CkLocMgr::addElementToRec(), CkMigratable::AtSync(), CkArrayPrefetch_readFromSwap(), CkArrayPrefetch_writeToSwap(), CkPupChareData(), CkPupMainChareData(), CkPupPerPlaceData(), and CkLocMgr::pupElementsFor().
const CkChareID& Chare::ckGetChareID | ( | void | ) | const [inline] |
Definition at line 259 of file charm++.h.
References thishandle.
Referenced by CkCallback::CkCallback(), and PUPmarshall().
void Chare::CkGetChareID | ( | CkChareID * | dest | ) | const [inline] |
Definition at line 260 of file charm++.h.
References thishandle.
Referenced by main::main().
void Chare::CkEnableObjQ | ( | ) |
Definition at line 100 of file ck.C.
References CkObjectMsgQ::create(), and objQ.
Referenced by Chare().
CkObjectMsgQ& Chare::CkGetObjQueue | ( | ) | [inline] |
Definition at line 264 of file charm++.h.
References objQ.
Referenced by _enqObjQueue(), _ObjectQHandler(), _skipCldEnqueue(), and _TokenHandler().
int Chare::ckGetChareType | ( | void | ) | const [virtual] |
Return the type of this chare, as present in _chareTable.
Reimplemented in IrrGroup, and CkMigratable.
char * Chare::ckDebugChareName | ( | void | ) | [virtual] |
Return a strdup'd array containing this object's string name.
Reimplemented in IrrGroup, and ArrayElement.
Definition at line 157 of file ck.C.
References buf, Converse::CkMyPe(), and strdup().
Place into str a copy of the id of this object up to limit bytes, return the number of bytes used for the id.
Reimplemented in IrrGroup, and ArrayElement.
void Chare::ckDebugPup | ( | PUP::er & | p | ) | [virtual] |
void Chare::CkAddThreadListeners | ( | CthThread | tid, | |
void * | msg | |||
) | [virtual] |
Called when a [threaded] charm entry method is created:.
This method is called before starting a [threaded] entry method.
Reimplemented in IrrGroup, CkMigratable, and Group.
Definition at line 172 of file ck.C.
References CthSetThreadID(), CkChareID::objPtr, CkChareID::onPE, thishandle, traceAddThreadListeners(), and UsrToEnv().
Referenced by CkMigratable::CkAddThreadListeners(), and Group::CkAddThreadListeners().
void Chare::sanitycheck | ( | ) | [inline] |
Definition at line 278 of file charm++.h.
References CmiAbort(), and magic.
Referenced by CkLocMgr::pupElementsFor().
CkChareID Chare::thishandle [protected] |
Definition at line 228 of file charm++.h.
Referenced by MainchareExt::__entryMethod(), AmrCoordinator::AmrCoordinator(), Chare(), CkAddThreadListeners(), CkGetChareID(), ckGetChareID(), MainchareExt::MainchareExt(), pup(), waitqd_QDChare::waitQD(), and waitqd_QDChare::waitqd_QDChare().
CkObjectMsgQ Chare::objQ [protected] |
Definition at line 237 of file charm++.h.
Referenced by ArrayElemExt::ArrayElemExt(), ArrayMapExt::ArrayMapExt(), Chare(), GroupExt::GroupExt(), pup(), and ~Chare().
Definition at line 240 of file charm++.h.
Referenced by _getTicket(), _receivedDetDataHandler(), _receivedTNDataHandler(), ElementCaller::addLocation(), CkMigratable::AtSync(), Chare(), CkPupPerPlaceData(), CkReductionMgr::contribute(), forAllCharesDo(), ArrayElement::initBasics(), IrrGroup::IrrGroup(), NodeGroup::NodeGroup(), postProcessReceivedMessage(), preProcessReceivedMessage(), processReceivedDet(), processReceivedTN(), pup(), sendCommonMsg(), sendMsg(), sendRemoteMsg(), and CkMigratable::staticResumeFromSync().