00001 #ifndef _WAITQD_H 00002 #define _WAITQD_H 00003 00004 #include "charm++.h" 00005 #include "waitqd.decl.h" 00006 00007 extern "C" void CkWaitQD(void); 00008 00009 class waitqd_QDChare : public Chare { 00010 private: 00011 bool waitStarted; 00012 void *threadList; 00013 public: 00014 waitqd_QDChare(CkArgMsg *ckam); 00015 waitqd_QDChare(CkMigrateMessage *m):Chare(m), waitStarted(false), threadList(0) {} 00016 void waitQD(void); 00017 void onQD(CkQdMsg *ckqm); 00018 }; 00019 00020 #endif